Skip to content

Commit

Permalink
drouting: fix bug when raising event for received replicated status
Browse files Browse the repository at this point in the history
(cherry picked from commit 975198f)
  • Loading branch information
rvlad-patrascu committed Mar 21, 2017
1 parent 01d4d6a commit 85ed33e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/drouting/dr_replication.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 85ed33e

Please sign in to comment.