Module: kamailio
Branch: 5.5
Commit: a5c798a2292323e235df5423cdc27eea46bddbbf
URL:
https://github.com/kamailio/kamailio/commit/a5c798a2292323e235df5423cdc27ee…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-07-17T11:16:53+02:00
htable: set dbload filed on empty db result
(cherry picked from commit ba9d663c5d382edef3c98b31aa4341b21c307a34)
(cherry picked from commit 27ab4b757805083c231ceb109a46f5501b1baa7c)
(cherry picked from commit 249f476403f987917ed7d5c7f6d7ea70e1f43e63)
---
Modified: src/modules/htable/ht_db.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a5c798a2292323e235df5423cdc27ee…
Patch:
https://github.com/kamailio/kamailio/commit/a5c798a2292323e235df5423cdc27ee…
---
diff --git a/src/modules/htable/ht_db.c b/src/modules/htable/ht_db.c
index cbce085f6c5..f76ea463201 100644
--- a/src/modules/htable/ht_db.c
+++ b/src/modules/htable/ht_db.c
@@ -249,6 +249,7 @@ int ht_db_load_table(ht_t *ht, str *dbtable, int mode)
if(RES_ROW_N(db_res)==0)
{
ht_dbf.free_result(ht_db_con, db_res);
+ ht->dbload = 1;
LM_DBG("Nothing to be loaded in hash table\n");
return 0;
}
@@ -261,6 +262,7 @@ int ht_db_load_table(ht_t *ht, str *dbtable, int mode)
if( ret==0)
{
ht_dbf.free_result(ht_db_con, db_res);
+ ht->dbload = 1;
return 0;
} else {
goto error;