[sr-dev] git:5.5:0d77ae82: db_cluster: Fix spelling errors

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 16 09:28:04 CET 2021


Module: kamailio
Branch: 5.5
Commit: 0d77ae82ff1cac93a48ede3558ddf48632960a70
URL: https://github.com/kamailio/kamailio/commit/0d77ae82ff1cac93a48ede3558ddf48632960a70

Author: Olle E. Johansson <oej at edvina.net>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-12-16T08:26:51+01:00

db_cluster: Fix spelling errors

(cherry picked from commit 2eed551ed55fcd2bc190e1045da377f6b1e4d22d)

---

Modified: src/modules/db_cluster/dbcl_api.c
Modified: src/modules/db_cluster/dbcl_data.c

---

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

---

diff --git a/src/modules/db_cluster/dbcl_api.c b/src/modules/db_cluster/dbcl_api.c
index 838f2a24c2..d1906e0f9d 100644
--- a/src/modules/db_cluster/dbcl_api.c
+++ b/src/modules/db_cluster/dbcl_api.c
@@ -72,7 +72,7 @@ extern int dbcl_max_query_length;
 							cls->usedcon = cls->rlist[i].clist[j];\
 							return 0;\
 						} else {\
-							LM_DBG("serial operation - failre on cluster"\
+							LM_DBG("serial operation - failure on cluster"\
 									" [%.*s] (%d/%d)\n",\
 									cls->name.len, cls->name.s, i, j);\
 							sec = get_ticks() - sec;\
@@ -105,7 +105,7 @@ extern int dbcl_max_query_length;
 							cls->rlist[i].crt = (j+1) % cls->rlist[i].clen;\
 							return 0;\
 						} else {\
-							LM_DBG("round robin operation - failre on cluster"\
+							LM_DBG("round robin operation - failure on cluster"\
 									" [%.*s] (%d/%d)\n",\
 									cls->name.len, cls->name.s, i, j);\
 							sec = get_ticks() - sec;\
@@ -409,7 +409,7 @@ db1_con_t* db_cluster_init(const str* _dburl)
 	LM_DBG("initializing with cluster [%.*s]\n", _dburl->len, _dburl->s);
 	if(_dburl->len<10 || strncmp(_dburl->s, "cluster://", 10)!=0)
 	{
-		LM_ERR("invlaid url for cluster module [%.*s]\n",
+		LM_ERR("invalid url for cluster module [%.*s]\n",
 				_dburl->len, _dburl->s);
 		return NULL;
 	}
@@ -433,7 +433,7 @@ db1_con_t* db_cluster_init(const str* _dburl)
 	cls->ref++;
 	h = (db1_con_t*)pkg_malloc(sizeof(db1_con_t));
 	if (h==NULL) {
-		LM_ERR("out of pkg\n");
+		LM_ERR("out of pkg memory\n");
 		return NULL;
 	}
 	memset(h, 0, sizeof(db1_con_t));
diff --git a/src/modules/db_cluster/dbcl_data.c b/src/modules/db_cluster/dbcl_data.c
index f3cb2dcbf8..65bc0eed40 100644
--- a/src/modules/db_cluster/dbcl_data.c
+++ b/src/modules/db_cluster/dbcl_data.c
@@ -265,7 +265,7 @@ int dbcl_cls_set_connections(dbcl_cls_t *cls, str *cons)
 					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",
+			LM_WARN("too many read connections in cluster - connection id [%.*s]\n",
 					pit->name.len, pit->name.s);
 		}
 		if(s.s[2]<'0' || s.s[2]>'9')




More information about the sr-dev mailing list