<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR>
<STYLE>
<!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
/* Page Definitions */
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#0000ff size=2>thanks Tomasz ,I will try
hardcoded to "storage.mysql.*" to test it .</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT face=Verdana size=2>Zhangmingjie</FONT></DIV>
<DIV><FONT face=Verdana size=2>2007-06-28</FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG> Tomasz
Sterna</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG>
2007-06-26 20:32:28</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> Jabber software
development list</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> </FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> Re: [jdev] sm.xml
configure</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Dnia 26-06-2007, wto o godzinie 13:12 +0200, Norman Rasmussen</DIV>
<DIV>napisał(a):</DIV>
<DIV>> - in storage.c : copy mysql as mysql1 in: init extern's,</DIV>
<DIV>> driver_array, driver_inits</DIV>
<DIV>> - in storage_mysql.c : copy mysql_init as mysql1_init, and change</DIV>
<DIV>> storage.mysql to storage.mysql1. </DIV>
<DIV> </DIV>
<DIV>Since 2.1.5 storage modules are loaded dynamically, so there is no</DIV>
<DIV>static module mapping table anymore.</DIV>
<DIV>All modules have st_init() function not specific to a module kind.</DIV>
<DIV>So copying storage_mysql.so as storage_mysql2.so and configuring</DIV>
<DIV><mysql2/
> would be enough, but the problem is in the storage_mysql.c</DIV>
<DIV> </DIV>
<DIV>$ grep storage.mysql storage/storage_mysql.c</DIV>
<DIV>host = config_get_one(drv- >st- >sm-
>config, "storage.mysql.host", 0);</DIV>
<DIV>port = config_get_one(drv- >st- >sm-
>config, "storage.mysql.port", 0);</DIV>
<DIV>dbname = config_get_one(drv- >st- >sm-
>config, "storage.mysql.dbname", 0);</DIV>
<DIV>user = config_get_one(drv- >st- >sm-
>config, "storage.mysql.user", 0);</DIV>
<DIV>[...]</DIV>
<DIV> </DIV>
<DIV>These are hardcoded to "storage.mysql.*" and would require code changes.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>Tomasz Sterna</DIV>
<DIV>Xiaoka Grp. <A
href="http://www.xiaoka.com/">http://www.xiaoka.com/</A></DIV></FONT></DIV></BODY></HTML>