From 08d4f863ff3df32ede411f6d75cbf844f49fec50 Mon Sep 17 00:00:00 2001 From: Frank Liepold Date: Tue, 16 Jul 2013 12:26:14 +0200 Subject: [PATCH] marsadm: command secondary must not change primary link if executed on a secondary Fixes the bug, that marsadm secondary sets the link /primary to (none) even if executed on a secondary host. --- userspace/marsadm | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/marsadm b/userspace/marsadm index 70a71846..cdf829fb 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -1327,6 +1327,7 @@ sub primary_phase1 { return if ($force and $cmd eq "primary"); my $old = _get_designated_primary($res); return if ($old eq $host and $cmd eq "primary"); + return if ($old ne $host and $cmd eq "secondary"); my $new = "(none)"; return if $old eq $new; _primary_res($res, $new, $old);