fixed state reset
This commit is contained in:
parent
30fb5aabeb
commit
77fd555a84
2
syncoid
2
syncoid
|
@ -1527,6 +1527,7 @@ sub getsnapsfallback() {
|
||||||
}
|
}
|
||||||
|
|
||||||
my $getsnapcmd = "$rhost $mysudocmd $zfscmd get -Hpd 1 type,guid,creation $fsescaped |";
|
my $getsnapcmd = "$rhost $mysudocmd $zfscmd get -Hpd 1 type,guid,creation $fsescaped |";
|
||||||
|
warn "snapshot listing failed, trying fallback command"
|
||||||
if ($debug) { print "DEBUG: FALLBACK, getting list of snapshots on $fs using $getsnapcmd...\n"; }
|
if ($debug) { print "DEBUG: FALLBACK, getting list of snapshots on $fs using $getsnapcmd...\n"; }
|
||||||
open FH, $getsnapcmd;
|
open FH, $getsnapcmd;
|
||||||
my @rawsnaps = <FH>;
|
my @rawsnaps = <FH>;
|
||||||
|
@ -1586,6 +1587,7 @@ sub getsnapsfallback() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$snaps{$type}{$snap}{'creation'}=$creationsuffix;
|
$snaps{$type}{$snap}{'creation'}=$creationsuffix;
|
||||||
|
$state = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$state++;
|
$state++;
|
||||||
|
|
Loading…
Reference in New Issue