[OpenSIPS-Devel] [ opensips-Patches-2198410 ] Missing DB binding in uri_db module init.

SourceForge.net noreply at sourceforge.net
Tue Oct 28 12:30:08 CET 2008


Patches item #2198410, was opened at 2008-10-26 20:34
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=2198410&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Sergio Gutierrez (saguti)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Missing DB binding in uri_db module init.

Initial Comment:
In the function which initializes the database connection, the binding with DB module is missing, which causes OpenSIPS does not start when module is used.
The attached patch fixes this.

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2008-10-28 13:30

Message:
Hi Sergio,

In the original implementation (for the version check), the same db_bind
struct was used for checking and runtime ops. 

In your fix, you were doing bind for each child process - works, but not
the proper place (inefficient) ; I moved the bind in mod_init.

Please test.

Best regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=2198410&group_id=232389



More information about the Devel mailing list