main: remote_trigger only from primary to secondaries

This commit is contained in:
Thomas Schoebel-Theuer 2017-12-12 15:59:02 +01:00 committed by Thomas Schoebel-Theuer
parent de4263e8b9
commit 5cff1bac2a

View File

@ -1356,7 +1356,8 @@ void write_info_links(struct mars_rotate *rot)
if (count) {
if (inf.inf_min_pos == inf.inf_max_pos)
mars_trigger();
mars_remote_trigger();
if (rot->todo_primary | rot->is_primary | rot->old_is_primary)
mars_remote_trigger();
}
}
@ -1379,7 +1380,8 @@ void _make_new_replaylink(struct mars_rotate *rot, char *new_host, int new_seque
_update_version_link(rot, &inf);
mars_trigger();
mars_remote_trigger();
if (rot->todo_primary | rot->is_primary | rot->old_is_primary)
mars_remote_trigger();
}
static