mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-18 10:49:40 +02:00
fix move replication cursor
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user