Skip to content

Commit

Permalink
clusterer: advertise tag's active state only in defined cluster
Browse files Browse the repository at this point in the history
Thanks go to Vlad Patrascu for brainstorming this!

(cherry picked from commit d741f18)
  • Loading branch information
razvancrainea committed Aug 24, 2022
1 parent c1ee52a commit b7d007d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/clusterer/sharing_tags.c
Expand Up @@ -775,6 +775,9 @@ void shtag_flush_state(int c_id, int node_id)
if (!tag->send_active_msg)
continue;

if (tag->cluster_id != c_id)
continue;

/* send repltag active msg to nodes to which we didn't already */
for (ni = tag->active_msgs_sent; ni && ni->node_id != node_id;
ni = ni->next) ;
Expand Down

0 comments on commit b7d007d

Please sign in to comment.