> ;))
>
> > +};
> >
> > -die $err if $err;
> > +# old snapshots will removed by next run from prepare_local_job.
> > +warn $@ if $@;
> > +$logfunc->("delete stale replication snapshot error: $@") if $@;
>
> again, is this double warn + log needed? (I ask because 2 out of 3
minor nit: please use a short subject that indicates what the commit
does, not what the bug was that it fixes.
e.g., something like
fix #1694: make failure of snapshot removal non-fatal
On Thu, Apr 12, 2018 at 09:46:03AM +0200, Wolfgang Link wrote:
> If the pool is under heavy load ZFS will low
> Dietmar Maurer hat am 12. April 2018 um 11:06
> geschrieben:
>
>
> > diff --git a/PVE/Replication.pm b/PVE/Replication.pm
> > index 9bc4e61..d8ccfaf 100644
> > --- a/PVE/Replication.pm
> > +++ b/PVE/Replication.pm
> > @@ -136,8 +136,18 @@ sub prepare {
> >
> @@ -293,12 +303,16 @@ sub replicate {
> die $err;
> }
>
> -# remove old snapshots because they are no longer needed
> -$cleanup_local_snapshots->($last_snapshots, $last_sync_snapname);
> +eval {
> + # remove old snapshots because they are no longer needed
> +
> diff --git a/PVE/Replication.pm b/PVE/Replication.pm
> index 9bc4e61..d8ccfaf 100644
> --- a/PVE/Replication.pm
> +++ b/PVE/Replication.pm
> @@ -136,8 +136,18 @@ sub prepare {
> $last_snapshots->{$volid}->{$snap} = 1;
> } elsif ($snap =~ m/^\Q$prefix\E/) {
>