<!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&nbsp;to&nbsp;"storage.mysql.*" to test it .</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</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&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Dnia&nbsp;26-06-2007,&nbsp;wto&nbsp;o&nbsp;godzinie&nbsp;13:12&nbsp;+0200,&nbsp;Norman&nbsp;Rasmussen</DIV>
<DIV>napisał(a):</DIV>
<DIV>&gt;&nbsp;&nbsp;-&nbsp;in&nbsp;storage.c&nbsp;:&nbsp;copy&nbsp;mysql&nbsp;as&nbsp;mysql1&nbsp;in:&nbsp;init&nbsp;extern's,</DIV>
<DIV>&gt;&nbsp;driver_array,&nbsp;driver_inits</DIV>
<DIV>&gt;&nbsp;&nbsp;-&nbsp;in&nbsp;storage_mysql.c&nbsp;:&nbsp;copy&nbsp;mysql_init&nbsp;as&nbsp;mysql1_init,&nbsp;and&nbsp;change</DIV>
<DIV>&gt;&nbsp;storage.mysql&nbsp;to&nbsp;storage.mysql1.&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Since&nbsp;2.1.5&nbsp;storage&nbsp;modules&nbsp;are&nbsp;loaded&nbsp;dynamically,&nbsp;so&nbsp;there&nbsp;is&nbsp;no</DIV>
<DIV>static&nbsp;module&nbsp;mapping&nbsp;table&nbsp;anymore.</DIV>
<DIV>All&nbsp;modules&nbsp;have&nbsp;st_init()&nbsp;function&nbsp;not&nbsp;specific&nbsp;to&nbsp;a&nbsp;module&nbsp;kind.</DIV>
<DIV>So&nbsp;copying&nbsp;storage_mysql.so&nbsp;as&nbsp;storage_mysql2.so&nbsp;and&nbsp;configuring</DIV>
<DIV>&lt;mysql2/ 
&gt;&nbsp;would&nbsp;be&nbsp;enough,&nbsp;but&nbsp;the&nbsp;problem&nbsp;is&nbsp;in&nbsp;the&nbsp;storage_mysql.c</DIV>
<DIV>&nbsp;</DIV>
<DIV>$&nbsp;grep&nbsp;storage.mysql&nbsp;storage/storage_mysql.c</DIV>
<DIV>host&nbsp;=&nbsp;config_get_one(drv- &gt;st- &gt;sm- 
&gt;config,&nbsp;"storage.mysql.host",&nbsp;0);</DIV>
<DIV>port&nbsp;=&nbsp;config_get_one(drv- &gt;st- &gt;sm- 
&gt;config,&nbsp;"storage.mysql.port",&nbsp;0);</DIV>
<DIV>dbname&nbsp;=&nbsp;config_get_one(drv- &gt;st- &gt;sm- 
&gt;config,&nbsp;"storage.mysql.dbname",&nbsp;0);</DIV>
<DIV>user&nbsp;=&nbsp;config_get_one(drv- &gt;st- &gt;sm- 
&gt;config,&nbsp;"storage.mysql.user",&nbsp;0);</DIV>
<DIV>[...]</DIV>
<DIV>&nbsp;</DIV>
<DIV>These&nbsp;are&nbsp;hardcoded&nbsp;to&nbsp;"storage.mysql.*"&nbsp;and&nbsp;would&nbsp;require&nbsp;code&nbsp;changes.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>--&nbsp;</DIV>
<DIV>Tomasz&nbsp;Sterna</DIV>
<DIV>Xiaoka&nbsp;Grp.&nbsp;&nbsp;<A 
href="http://www.xiaoka.com/">http://www.xiaoka.com/</A></DIV></FONT></DIV></BODY></HTML>