mirror of
https://github.com/schoebel/mars
synced 2025-02-18 13:06:58 +00:00
main: remote_trigger only from primary to secondaries
This commit is contained in:
parent
de4263e8b9
commit
5cff1bac2a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user