Module: kamailio Branch: master Commit: ba9d663c5d382edef3c98b31aa4341b21c307a34 URL: https://github.com/kamailio/kamailio/commit/ba9d663c5d382edef3c98b31aa4341b21c307a34
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2023-05-16T17:28:02+02:00 htable: set dbload filed on empty db result --- Modified: src/modules/htable/ht_db.c --- Diff: https://github.com/kamailio/kamailio/commit/ba9d663c5d382edef3c98b31aa4341b21c307a34.diff Patch: https://github.com/kamailio/kamailio/commit/ba9d663c5d382edef3c98b31aa4341b21c307a34.patch --- diff --git a/src/modules/htable/ht_db.c b/src/modules/htable/ht_db.c index 2b2eb25bfd..19edb9f97a 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; _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to sr-dev-le...@lists.kamailio.org