[sr-dev] git:master:fc0ee0bc: db_cluster: Add RPC error message when clusters not found

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


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

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

db_cluster: Add RPC error message when clusters not found

---

Modified: src/modules/db_cluster/db_cluster_mod.c

---

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

---

diff --git a/src/modules/db_cluster/db_cluster_mod.c b/src/modules/db_cluster/db_cluster_mod.c
index 2ddbffc2ad..c42d5b2aa9 100644
--- a/src/modules/db_cluster/db_cluster_mod.c
+++ b/src/modules/db_cluster/db_cluster_mod.c
@@ -339,6 +339,7 @@ static void dbcl_rpc_list_clusters(rpc_t *rpc, void *c)
 	if(cls==NULL)
 	{
 		LM_ERR("root not set\n");
+		rpc->fault(c, 500, "Clusters not found");
 		return;
 	}
 




More information about the sr-dev mailing list