diff --git a/lib/ZnapZend.pm b/lib/ZnapZend.pm index 5c2a4c80..193e49f6 100644 --- a/lib/ZnapZend.pm +++ b/lib/ZnapZend.pm @@ -600,8 +600,14 @@ my $sendRecvCleanup = sub { my $dstDataSet = $srcDataSet; $dstDataSet =~ s/^\Q$backupSet->{src}\E/$backupSet->{$dst}/; - $self->zLog->debug('sending snapshots from ' . $srcDataSet . ' to ' . $dstDataSet . ((grep (/^\Q$srcDataSet\E$/, @dataSetsExplicitlyDisabled)) ? ": not enabled, should be skipped" : "")); - { + my $srcDataSetDisabled = (grep (/^\Q$srcDataSet\E$/, @dataSetsExplicitlyDisabled)); + $self->zLog->debug('sending snapshots from ' . $srcDataSet . ' to ' . $dstDataSet . + ($srcDataSetDisabled ? ": not enabled, skipped" : "")); + if ($srcDataSetDisabled) { + next; + } + + { # scoping local $@; eval { local $SIG{__DIE__};