From f4b8bede6a247415eda84a7db9569747905f9fa0 Mon Sep 17 00:00:00 2001 From: Marat Gareev Date: Mon, 25 Jan 2021 18:40:47 +0300 Subject: [PATCH] dispatcher: Log dest sets after variable update --- src/modules/dispatcher/dispatch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c index c0a6d22fc0b..62d416620ea 100644 --- a/src/modules/dispatcher/dispatch.c +++ b/src/modules/dispatcher/dispatch.c @@ -895,14 +895,14 @@ int ds_load_list(char *lfile) goto error; } - LM_DBG("found [%d] dest sets\n", _ds_list_nr); - fclose(f); f = NULL; /* Update list - should it be sync'ed? */ _ds_list_nr = setn; *crt_idx = *next_idx; + LM_DBG("found [%d] dest sets\n", _ds_list_nr); + ds_log_sets(); return 0; @@ -1143,14 +1143,14 @@ int ds_load_db(void) goto err2; } - LM_DBG("found [%d] dest sets\n", _ds_list_nr); - ds_dbf.free_result(ds_db_handle, res); /* update data - should it be sync'ed? */ _ds_list_nr = setn; *crt_idx = *next_idx; + LM_DBG("found [%d] dest sets\n", _ds_list_nr); + ds_log_sets(); if(dest_errs > 0)