Selaa lähdekoodia

db_cluster: Fix spelling errors

(cherry picked from commit 2eed551ed55fcd2bc190e1045da377f6b1e4d22d)
(cherry picked from commit 0d77ae82ff1cac93a48ede3558ddf48632960a70)
Olle E. Johansson 3 vuotta sitten
vanhempi
commit
d40c394d17
2 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 4 4
      src/modules/db_cluster/dbcl_api.c
  2. 1 1
      src/modules/db_cluster/dbcl_data.c

+ 4 - 4
src/modules/db_cluster/dbcl_api.c

@@ -72,7 +72,7 @@ extern int dbcl_max_query_length;
 							cls->usedcon = cls->rlist[i].clist[j];\
 							cls->usedcon = cls->rlist[i].clist[j];\
 							return 0;\
 							return 0;\
 						} else {\
 						} else {\
-							LM_DBG("serial operation - failre on cluster"\
+							LM_DBG("serial operation - failure on cluster"\
 									" [%.*s] (%d/%d)\n",\
 									" [%.*s] (%d/%d)\n",\
 									cls->name.len, cls->name.s, i, j);\
 									cls->name.len, cls->name.s, i, j);\
 							sec = get_ticks() - sec;\
 							sec = get_ticks() - sec;\
@@ -105,7 +105,7 @@ extern int dbcl_max_query_length;
 							cls->rlist[i].crt = (j+1) % cls->rlist[i].clen;\
 							cls->rlist[i].crt = (j+1) % cls->rlist[i].clen;\
 							return 0;\
 							return 0;\
 						} else {\
 						} else {\
-							LM_DBG("round robin operation - failre on cluster"\
+							LM_DBG("round robin operation - failure on cluster"\
 									" [%.*s] (%d/%d)\n",\
 									" [%.*s] (%d/%d)\n",\
 									cls->name.len, cls->name.s, i, j);\
 									cls->name.len, cls->name.s, i, j);\
 							sec = get_ticks() - sec;\
 							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);
 	LM_DBG("initializing with cluster [%.*s]\n", _dburl->len, _dburl->s);
 	if(_dburl->len<10 || strncmp(_dburl->s, "cluster://", 10)!=0)
 	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);
 				_dburl->len, _dburl->s);
 		return NULL;
 		return NULL;
 	}
 	}
@@ -433,7 +433,7 @@ db1_con_t* db_cluster_init(const str* _dburl)
 	cls->ref++;
 	cls->ref++;
 	h = (db1_con_t*)pkg_malloc(sizeof(db1_con_t));
 	h = (db1_con_t*)pkg_malloc(sizeof(db1_con_t));
 	if (h==NULL) {
 	if (h==NULL) {
-		LM_ERR("out of pkg\n");
+		LM_ERR("out of pkg memory\n");
 		return NULL;
 		return NULL;
 	}
 	}
 	memset(h, 0, sizeof(db1_con_t));
 	memset(h, 0, sizeof(db1_con_t));

+ 1 - 1
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);
 					pit->name.len, pit->name.s, i, cls->rlist[i].clen);
 			cls->rlist[i].clen++;
 			cls->rlist[i].clen++;
 		} else {
 		} 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);
 					pit->name.len, pit->name.s);
 		}
 		}
 		if(s.s[2]<'0' || s.s[2]>'9')
 		if(s.s[2]<'0' || s.s[2]>'9')