mirror of https://github.com/schoebel/mars
marsadm: fix is-consistent for secondaries
This commit is contained in:
parent
ed57478ace
commit
438e5ff0a4
|
@ -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]+):;
|
||||
|
|
Loading…
Reference in New Issue