Re: Re: [jdev] sm.xml configure

Zhangmingjie mjxlzhang at gmail.com
Wed Jun 27 21:51:15 CDT 2007


thanks Tomasz ,I will try hardcoded to "storage.mysql.*" to test it .




Zhangmingjie
2007-06-28



发件人: Tomasz Sterna
发送时间: 2007-06-26 20:32:28
收件人: Jabber software development list
抄送: 
主题: Re: [jdev] sm.xml configure

Dnia 26-06-2007, wto o godzinie 13:12 +0200, Norman Rasmussen
napisał(a):
>  - in storage.c : copy mysql as mysql1 in: init extern's,
> driver_array, driver_inits
>  - in storage_mysql.c : copy mysql_init as mysql1_init, and change
> storage.mysql to storage.mysql1. 

Since 2.1.5 storage modules are loaded dynamically, so there is no
static module mapping table anymore.
All modules have st_init() function not specific to a module kind.
So copying storage_mysql.so as storage_mysql2.so and configuring
<mysql2/ > would be enough, but the problem is in the storage_mysql.c

$ grep storage.mysql storage/storage_mysql.c
host = config_get_one(drv- >st- >sm- >config, "storage.mysql.host", 0);
port = config_get_one(drv- >st- >sm- >config, "storage.mysql.port", 0);
dbname = config_get_one(drv- >st- >sm- >config, "storage.mysql.dbname", 0);
user = config_get_one(drv- >st- >sm- >config, "storage.mysql.user", 0);
[...]

These are hardcoded to "storage.mysql.*" and would require code changes.


-- 
Tomasz Sterna
Xiaoka Grp.  http://www.xiaoka.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20070628/df9a60c6/attachment-0002.htm>


More information about the JDev mailing list