Module: sip-router
Branch: master
Commit: b53ca97379e1b4aeae80b794f23e25e9150a0e58
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b53ca97…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Aug 27 10:37:50 2012 +0200
db_cluster: more verbosity when building cluster structures
---
modules_k/db_cluster/dbcl_data.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules_k/db_cluster/dbcl_data.c b/modules_k/db_cluster/dbcl_data.c
index 94a3f1c..5ef3b63 100644
--- a/modules_k/db_cluster/dbcl_data.c
+++ b/modules_k/db_cluster/dbcl_data.c
@@ -262,6 +262,8 @@ int dbcl_cls_set_connections(dbcl_cls_t *cls, str *cons)
cls->rlist[i].mode = s.s[1] | 32;
cls->rlist[i].prio = i;
cls->rlist[i].clist[cls->rlist[i].clen] = sc;
+ LM_DBG("added con-id [%.*s] to rlist[%d] at [%d]\n",
+ pit->name.len, pit->name.s, i, cls->rlist[i].clen);
cls->rlist[i].clen++;
} else {
LM_WARN("too many read connections in cluster - con-id [%.*s]\n",
@@ -289,6 +291,8 @@ int dbcl_cls_set_connections(dbcl_cls_t *cls, str *cons)
cls->wlist[i].mode = s.s[3] | 32;
cls->wlist[i].prio = i;
cls->wlist[i].clist[cls->wlist[i].clen] = sc;
+ LM_DBG("added con-id [%.*s] to wlist[%d] at [%d]\n",
+ pit->name.len, pit->name.s, i, cls->wlist[i].clen);
cls->wlist[i].clen++;
} else {
LM_WARN("too many write connections in cluster - con-id [%.*s]\n",