Module: kamailio
Branch: master
Commit: 2eed551ed55fcd2bc190e1045da377f6b1e4d22d
URL:
https://github.com/kamailio/kamailio/commit/2eed551ed55fcd2bc190e1045da377f…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2021-12-06T13:12:23+01:00
db_cluster: Fix spelling errors
---
Modified: src/modules/db_cluster/dbcl_api.c
Modified: src/modules/db_cluster/dbcl_data.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2eed551ed55fcd2bc190e1045da377f…
Patch:
https://github.com/kamailio/kamailio/commit/2eed551ed55fcd2bc190e1045da377f…
---
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 02a3e7cbbe..6ff994974e 100644
--- a/src/modules/db_cluster/dbcl_data.c
+++ b/src/modules/db_cluster/dbcl_data.c
@@ -298,7 +298,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')