marsadm: fix is-consistent for secondaries

This commit is contained in:
Thomas Schoebel-Theuer 2014-08-18 20:19:40 +02:00 committed by Thomas Schoebel-Theuer
parent ed57478ace
commit 438e5ff0a4
1 changed files with 1 additions and 1 deletions

View File

@ -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]+):;