From 8755847a4089fa68deaf6048d7c17365fb54bb5e Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 27 Mar 2020 17:36:38 +0100 Subject: [PATCH] fix move replication cursor --- .../endpoint_zfs_abstraction_cursor_and_last_received_hold.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoint/endpoint_zfs_abstraction_cursor_and_last_received_hold.go b/endpoint/endpoint_zfs_abstraction_cursor_and_last_received_hold.go index 38ad2cb..365f212 100644 --- a/endpoint/endpoint_zfs_abstraction_cursor_and_last_received_hold.go +++ b/endpoint/endpoint_zfs_abstraction_cursor_and_last_received_hold.go @@ -235,7 +235,7 @@ func lastReceivedHoldImpl(jobid string) (string, error) { func MoveLastReceivedHold(ctx context.Context, fs string, to zfs.FilesystemVersion, jobID JobID) error { - if to.IsSnapshot() { + if !to.IsSnapshot() { return errors.Errorf("last-received-hold: target must be a snapshot: %s", to.FullPath(fs)) }