[sr-dev] git:master:4d41b85a: dbcluster: Add RPC error message wheb listing connections and no cluster is found

Olle E. Johansson oej at edvina.net
Mon Jan 3 15:41:26 CET 2022


Module: kamailio
Branch: master
Commit: 4d41b85a6b9d7f82306282a19c01d63b90f2a7d9
URL: https://github.com/kamailio/kamailio/commit/4d41b85a6b9d7f82306282a19c01d63b90f2a7d9

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date: 2022-01-03T15:41:10+01:00

dbcluster: Add RPC error message wheb listing connections and no cluster is found

---

Modified: src/modules/db_cluster/db_cluster_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/4d41b85a6b9d7f82306282a19c01d63b90f2a7d9.diff
Patch: https://github.com/kamailio/kamailio/commit/4d41b85a6b9d7f82306282a19c01d63b90f2a7d9.patch

---

diff --git a/src/modules/db_cluster/db_cluster_mod.c b/src/modules/db_cluster/db_cluster_mod.c
index bdbbb70ce6..a2c28f88e5 100644
--- a/src/modules/db_cluster/db_cluster_mod.c
+++ b/src/modules/db_cluster/db_cluster_mod.c
@@ -189,6 +189,7 @@ static void dbcl_rpc_list_connections(rpc_t *rpc, void *c)
 	if(cls==NULL)
 	{
 		LM_ERR("cluster not found [%.*s]\n", cluster.len, cluster.s);
+		rpc->fault(c, 500, "Cluster not found");
 		return;
 	}
 




More information about the sr-dev mailing list