Module: sip-router
Branch: master
Commit: fd5621f188d23d89bc4e475e3bc1e7964a065a90
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fd5621f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jul 19 17:19:25 2009 +0200
dialog(k): fixed db initialization
- child init DB initialization condition properly tests the db mode
- reported by Juha Heinanen
---
modules_k/dialog/dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/dialog/dialog.c b/modules_k/dialog/dialog.c
index 657f859..8f26aca 100644
--- a/modules_k/dialog/dialog.c
+++ b/modules_k/dialog/dialog.c
@@ -570,7 +570,7 @@ static int child_init(int rank)
if_update_stat(dlg_enable_stats, early_dlgs, early_dlgs_cnt);
}
- if ( ((dlg_db_mode==DB_MODE_REALTIME || DB_MODE_DELAYED) &&
+ if ( ((dlg_db_mode==DB_MODE_REALTIME || dlg_db_mode==DB_MODE_DELAYED) &&
(rank>0 || rank==PROC_TIMER)) ||
(dlg_db_mode==DB_MODE_SHUTDOWN && (rank==PROC_MAIN)) ) {
if ( dlg_connect_db(&db_url) ) {