Browse code

db_cluster: Fix spelling errors

Olle E. Johansson authored on 06/12/2021 12:00:59
Showing 2 changed files
... ...
@@ -72,7 +72,7 @@ extern int dbcl_max_query_length;
72 72
 							cls->usedcon = cls->rlist[i].clist[j];\
73 73
 							return 0;\
74 74
 						} else {\
75
-							LM_DBG("serial operation - failre on cluster"\
75
+							LM_DBG("serial operation - failure on cluster"\
76 76
 									" [%.*s] (%d/%d)\n",\
77 77
 									cls->name.len, cls->name.s, i, j);\
78 78
 							sec = get_ticks() - sec;\
... ...
@@ -105,7 +105,7 @@ extern int dbcl_max_query_length;
105 105
 							cls->rlist[i].crt = (j+1) % cls->rlist[i].clen;\
106 106
 							return 0;\
107 107
 						} else {\
108
-							LM_DBG("round robin operation - failre on cluster"\
108
+							LM_DBG("round robin operation - failure on cluster"\
109 109
 									" [%.*s] (%d/%d)\n",\
110 110
 									cls->name.len, cls->name.s, i, j);\
111 111
 							sec = get_ticks() - sec;\
... ...
@@ -409,7 +409,7 @@ db1_con_t* db_cluster_init(const str* _dburl)
409 409
 	LM_DBG("initializing with cluster [%.*s]\n", _dburl->len, _dburl->s);
410 410
 	if(_dburl->len<10 || strncmp(_dburl->s, "cluster://", 10)!=0)
411 411
 	{
412
-		LM_ERR("invlaid url for cluster module [%.*s]\n",
412
+		LM_ERR("invalid url for cluster module [%.*s]\n",
413 413
 				_dburl->len, _dburl->s);
414 414
 		return NULL;
415 415
 	}
... ...
@@ -433,7 +433,7 @@ db1_con_t* db_cluster_init(const str* _dburl)
433 433
 	cls->ref++;
434 434
 	h = (db1_con_t*)pkg_malloc(sizeof(db1_con_t));
435 435
 	if (h==NULL) {
436
-		LM_ERR("out of pkg\n");
436
+		LM_ERR("out of pkg memory\n");
437 437
 		return NULL;
438 438
 	}
439 439
 	memset(h, 0, sizeof(db1_con_t));
... ...
@@ -298,7 +298,7 @@ int dbcl_cls_set_connections(dbcl_cls_t *cls, str *cons)
298 298
 					pit->name.len, pit->name.s, i, cls->rlist[i].clen);
299 299
 			cls->rlist[i].clen++;
300 300
 		} else {
301
-			LM_WARN("too many read connections in cluster - con-id [%.*s]\n",
301
+			LM_WARN("too many read connections in cluster - connection id [%.*s]\n",
302 302
 					pit->name.len, pit->name.s);
303 303
 		}
304 304
 		if(s.s[2]<'0' || s.s[2]>'9')