Skip to content

Commit

Permalink
drouting: Fix startup crash with no clustering
Browse files Browse the repository at this point in the history
The crash was a regression, introduced in 40355a3.

Many thanks to @masudmuborakshohi and Sasmita Panda for the reports!
  • Loading branch information
liviuchircu committed Aug 19, 2021
1 parent 06474f1 commit 4206f76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/drouting/dr_clustering.c
Expand Up @@ -339,6 +339,9 @@ void receive_dr_cluster_event(enum clusterer_event ev, int node_id)

int dr_cluster_sync(void)
{
if (!dr_cluster_id)
return 0;

if (c_api.request_sync(&status_repl_cap, dr_cluster_id) < 0) {
LM_ERR("Sync request failed\n");
return -1;
Expand Down
1 change: 0 additions & 1 deletion modules/drouting/drouting.c
Expand Up @@ -2030,7 +2030,6 @@ static void rpc_dr_reload_data(int sender_id, void *unused)
dr_reload_data(1);

dr_cluster_sync();

}


Expand Down

0 comments on commit 4206f76

Please sign in to comment.