Browse code

dispatcher: Log dest sets after variable update

Marat Gareev authored on 25/01/2021 15:40:47
Showing 1 changed files
... ...
@@ -895,14 +895,14 @@ next_line:
895 895
 		goto error;
896 896
 	}
897 897
 
898
-	LM_DBG("found [%d] dest sets\n", _ds_list_nr);
899
-
900 898
 	fclose(f);
901 899
 	f = NULL;
902 900
 	/* Update list - should it be sync'ed? */
903 901
 	_ds_list_nr = setn;
904 902
 	*crt_idx = *next_idx;
905 903
 
904
+	LM_DBG("found [%d] dest sets\n", _ds_list_nr);
905
+
906 906
 	ds_log_sets();
907 907
 	return 0;
908 908
 
... ...
@@ -1143,14 +1143,14 @@ int ds_load_db(void)
1143 1143
 		goto err2;
1144 1144
 	}
1145 1145
 
1146
-	LM_DBG("found [%d] dest sets\n", _ds_list_nr);
1147
-
1148 1146
 	ds_dbf.free_result(ds_db_handle, res);
1149 1147
 
1150 1148
 	/* update data - should it be sync'ed? */
1151 1149
 	_ds_list_nr = setn;
1152 1150
 	*crt_idx = *next_idx;
1153 1151
 
1152
+	LM_DBG("found [%d] dest sets\n", _ds_list_nr);
1153
+
1154 1154
 	ds_log_sets();
1155 1155
 
1156 1156
 	if(dest_errs > 0)