Skip to content

Commit

Permalink
db_cluster: Fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
oej committed Dec 6, 2021
1 parent 3e36a56 commit 2eed551
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/modules/db_cluster/dbcl_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;\
Expand Down Expand Up @@ -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;\
Expand Down Expand Up @@ -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;
}
Expand All @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/modules/db_cluster/dbcl_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2eed551

Please sign in to comment.