Skip to content

Commit

Permalink
htable: set dbload filed on empty db result
Browse files Browse the repository at this point in the history
(cherry picked from commit ba9d663)
  • Loading branch information
miconda committed May 16, 2023
1 parent 94717b1 commit 27ab4b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/htable/ht_db.c
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down

0 comments on commit 27ab4b7

Please sign in to comment.