Hello,
On 3/30/12 11:30 AM, Juha Heinanen wrote:
daniel,
one more problem hit me while testing with db_cluster. i'm using s domain module and got this error:
Mar 30 12:25:56 sip /usr/sbin/sip-proxy[3795]: ERROR:<core> [db_cmd.c:129]: DB driver cluster does not implement mandatory db_cmd function Mar 30 12:25:56 sip /usr/sbin/sip-proxy[3795]: ERROR:<core> [db_cmd.c:175]: db_cmd: Cannot create db_cmd structure Mar 30 12:25:56 sip /usr/sbin/sip-proxy[3795]: ERROR: domain [domain_mod.c:210]: Error while preparing load_domains database command Mar 30 12:25:56 sip /usr/sbin/sip-proxy[3795]: ERROR:<core> [sr_module.c:939]: init_mod(): Error while initializing module domain (/usr/lib/sip-proxy/modules_s/domain.so)
what are my options? can s domain module/db driver be enhanced to support db_cluster or do i have write k version of s domain module?
db_cluster implements DB API v1, which is the one used by k modules, the reason i put the module in modules_k. I can't say how much effort would be to extend it for DB API v2, not being that familiar with it.
Perhaps would be faster either to extend domain(s) to detect DB API version and use the one available or enhance domain(k) to offer same things as domain(s). AFAIK for the second, its about having a domain id in domain table and eventually loading domain attributes.
Cheers, Daniel