put local resume token support back in

This commit is contained in:
Jim Salter 2022-04-08 21:34:01 +00:00
parent ef2b4f887a
commit ee8c884460
1 changed files with 1 additions and 3 deletions

View File

@ -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";