[sr-dev] git:master:18be1dae: Merge pull request #2609 from Maratk1n/ds_log_dest_sets

GitHub noreply at github.com
Mon Jan 25 19:03:44 CET 2021


Module: kamailio
Branch: master
Commit: 18be1dae593c07688a4a8a948e82af01dc0435ee
URL: https://github.com/kamailio/kamailio/commit/18be1dae593c07688a4a8a948e82af01dc0435ee

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2021-01-25T19:03:39+01:00

Merge pull request #2609 from Maratk1n/ds_log_dest_sets

dispatcher: Log dest sets after variable update

---

Modified: src/modules/dispatcher/dispatch.c

---

Diff:  https://github.com/kamailio/kamailio/commit/18be1dae593c07688a4a8a948e82af01dc0435ee.diff
Patch: https://github.com/kamailio/kamailio/commit/18be1dae593c07688a4a8a948e82af01dc0435ee.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