marsadm: show the old designated primary in the log

This is vital for incident analysis.
This commit is contained in:
Thomas Schoebel-Theuer 2016-02-02 15:39:47 +01:00
parent 89014d29c3
commit 1edef479fc
1 changed files with 1 additions and 0 deletions

View File

@ -2104,6 +2104,7 @@ sub primary_phase0 {
check_todo($cmd, $res, "fetch", 0, 0);
}
my $old = _get_designated_primary($res);
lprint "Current designated primary: $old\n";
if ($cmd eq "primary") {
check_sync_finished($res, $host) if $host ne $old;
# also check that other secondaries won't loose their sync primary