From 1edef479fc23b7143e5514f4f0449852f85959dc Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Tue, 2 Feb 2016 15:39:47 +0100 Subject: [PATCH] marsadm: show the old designated primary in the log This is vital for incident analysis. --- userspace/marsadm | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/marsadm b/userspace/marsadm index 8a91d994..926af457 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -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