put local resume token support back in
This commit is contained in:
parent
ef2b4f887a
commit
ee8c884460
4
syncoid
4
syncoid
|
@ -338,9 +338,7 @@ sub syncdataset {
|
|||
my $receiveextraargs = "";
|
||||
my $receivetoken;
|
||||
|
||||
# we need to make sure this isn't a local-only replication before trying to use resume tokens.
|
||||
# trying to receive using -s on a stream sent from another dataset on the same host produces ZFS errors. (Discovered on 2022-04-08 on an Ubuntu 20.04 system)
|
||||
if ($resume && ($sourcehost ne $targethost)) {
|
||||
if ($resume) {
|
||||
# save state of interrupted receive stream
|
||||
$receiveextraargs = "-s";
|
||||
|
||||
|
|
Loading…
Reference in New Issue