From 438e5ff0a4b30677132ce3937029b6d269161508 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Mon, 18 Aug 2014 20:19:40 +0200 Subject: [PATCH] marsadm: fix is-consistent for secondaries --- userspace/marsadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/marsadm b/userspace/marsadm index 2960fcd3..0f12b789 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -2537,7 +2537,7 @@ sub eval_fn { # has sync finished? my $syncrest = make_numeric(eval_fn($env, "sync-rest", "")); return 0 if $syncrest > 0; - unless ($almost) { + if (!$almost && eval_fn($env, "is-primary", "")) { # is the replay link indicating that something is not yet applied / dirty? my $replay = get_link($$env{"resdir"} . "/replay-" . $$env{"host"}, 1); $replay =~ m:,[0-9]+,([0-9]+):;