[sr-dev] git:master:f4b8bede: dispatcher: Log dest sets after variable update
Marat Gareev
maratkin94 at gmail.com
Mon Jan 25 19:03:44 CET 2021
Module: kamailio
Branch: master
Commit: f4b8bede6a247415eda84a7db9569747905f9fa0
URL: https://github.com/kamailio/kamailio/commit/f4b8bede6a247415eda84a7db9569747905f9fa0
Author: Marat Gareev <maratkin94 at gmail.com>
Committer: Marat Gareev <maratkin94 at gmail.com>
Date: 2021-01-25T18:40:47+03:00
dispatcher: Log dest sets after variable update
---
Modified: src/modules/dispatcher/dispatch.c
---
Diff: https://github.com/kamailio/kamailio/commit/f4b8bede6a247415eda84a7db9569747905f9fa0.diff
Patch: https://github.com/kamailio/kamailio/commit/f4b8bede6a247415eda84a7db9569747905f9fa0.patch
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index c0a6d22fc0..62d416620e 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)
More information about the sr-dev
mailing list