[sr-dev] git:master: mtree: don't safety check for db con in mod child

Daniel-Constantin Mierla miconda at gmail.com
Sat Jan 15 12:35:26 CET 2011


Module: sip-router
Branch: master
Commit: 11b19d2f5f471bd151bfc47e82f716526118e834
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=11b19d2f5f471bd151bfc47e82f716526118e834

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sat Jan 15 12:22:45 2011 +0100

mtree: don't safety check for db con in mod child

- proper connection will be returned based on pid condition

---

 modules/mtree/mtree_mod.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/modules/mtree/mtree_mod.c b/modules/mtree/mtree_mod.c
index 29ea12a..40ad09b 100644
--- a/modules/mtree/mtree_mod.c
+++ b/modules/mtree/mtree_mod.c
@@ -327,8 +327,6 @@ error1:
  */
 static int mi_child_init(void)
 {
-	if(db_con!=NULL)
-		return 0;
 	db_con = mt_dbf.init(&db_url);
 	if(db_con==NULL)
 	{




More information about the sr-dev mailing list