use ordinary replication if clone recreation fails
This commit is contained in:
parent
234cc61e3a
commit
c543f9aa0c
6
syncoid
6
syncoid
|
@ -416,6 +416,12 @@ sub syncdataset {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
system($synccmd) == 0 or do {
|
system($synccmd) == 0 or do {
|
||||||
|
if (defined $origin) {
|
||||||
|
print "INFO: clone creation failed, trying ordinary replication as fallback\n";
|
||||||
|
syncdataset($sourcehost, $sourcefs, $targethost, $targetfs, undef, 1);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
warn "CRITICAL ERROR: $synccmd failed: $?";
|
warn "CRITICAL ERROR: $synccmd failed: $?";
|
||||||
if ($exitcode < 2) { $exitcode = 2; }
|
if ($exitcode < 2) { $exitcode = 2; }
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue