Module: sip-router
Branch: master
Commit: c5ca00dc3dba76bfa5d2b35963999ae10db88cf1
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c5ca00d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Sep 29 10:23:23 2011 +0200
usrloc(k): use PROC_SIPINIT instead of rank 1 in child_init
- this child is used to load the records from db
---
modules_k/usrloc/ul_mod.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/usrloc/ul_mod.c b/modules_k/usrloc/ul_mod.c
index eaa36e2..17526f9 100644
--- a/modules_k/usrloc/ul_mod.c
+++ b/modules_k/usrloc/ul_mod.c
@@ -360,8 +360,8 @@ static int child_init(int _rank)
LM_ERR("child(%d): failed to connect to database\n", _rank);
return -1;
}
- /* _rank==1 is used even when fork is disabled */
- if (_rank==1 && db_mode!= DB_ONLY) {
+ /* _rank==PROC_SIPINIT is used even when fork is disabled */
+ if (_rank==PROC_SIPINIT && db_mode!= DB_ONLY) {
/* if cache is used, populate domains from DB */
for( ptr=root ; ptr ; ptr=ptr->next) {
if (preload_udomain(ul_dbh, ptr->d) < 0) {