From 85ed33e7affb866b1d9e3c3709f53a74f5cdab78 Mon Sep 17 00:00:00 2001 From: rvlad-patrascu Date: Tue, 21 Mar 2017 14:06:33 +0200 Subject: [PATCH] drouting: fix bug when raising event for received replicated status (cherry picked from commit 975198f5a3d347df58a3162a8e149be51366fb49) --- modules/drouting/dr_replication.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/drouting/dr_replication.c b/modules/drouting/dr_replication.c index cc604ceda72..142b708c1e1 100644 --- a/modules/drouting/dr_replication.c +++ b/modules/drouting/dr_replication.c @@ -34,7 +34,7 @@ str repl_dr_module_name = str_init("drouting"); struct clusterer_binds clusterer_api; /* implemented in drouting.c */ -void dr_raise_event(pgw_t *gw); +void dr_raise_event(struct head_db *p, pgw_t *gw); extern struct head_db * head_db_start; @@ -135,7 +135,7 @@ static int gw_status_update(bin_packet_t *packet) /* set the DIRTY flag to force flushing to DB */ gw->flags |= DR_DST_STAT_DIRT_FLAG; /* raise event for the status change */ - dr_raise_event(gw); + dr_raise_event(part, gw); lock_stop_read(part->ref_lock); return 0; }