fix move replication cursor

This commit is contained in:
Christian Schwarz
2020-03-27 17:36:38 +01:00
parent 586a4ffac8
commit 8755847a40

View File

@@ -235,7 +235,7 @@ func lastReceivedHoldImpl(jobid string) (string, error) {
func MoveLastReceivedHold(ctx context.Context, fs string, to zfs.FilesystemVersion, jobID JobID) 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)) return errors.Errorf("last-received-hold: target must be a snapshot: %s", to.FullPath(fs))
} }