Module: sip-router
Branch: 3.1
Commit: b3551631dfb2a72611ba8f62e0f85d09598d9acf
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b355163…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Jan 10 22:44:31 2011 +0100
srdb1: extended warning with PIDs of conflicting connections
- troubleshooting purposes
(cherry picked from commit db384b843cbcbbe8a42ca8ab3b36b874042fe00e)
---
lib/srdb1/db_id.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/srdb1/db_id.c b/lib/srdb1/db_id.c
index c8db30f..7a8b5d7 100644
--- a/lib/srdb1/db_id.c
+++ b/lib/srdb1/db_id.c
@@ -277,7 +277,8 @@ unsigned char cmp_db_id(const struct db_id* id1, const struct db_id*
id2)
if (strcasecmp(id1->host, id2->host)) return 0;
if (strcmp(id1->database, id2->database)) return 0;
if(id1->pid!=id2->pid) {
- LM_WARN("identical DB URLs, but different DB connection pid\n");
+ LM_WARN("identical DB URLs, but different DB connection pid [%d/%d]\n",
+ id1->pid, id2->pid);
return 0;
}
return 1;