mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Handle changes to versioning config for replication (#10598)
Disallow versioning suspension on a bucket with pre-existing replication configuration If versioning is suspended on the target,replication should fail.
This commit is contained in:
committed by
GitHub
parent
061fa0635c
commit
56d1b227cf
@@ -151,6 +151,13 @@ func putOpts(ctx context.Context, r *http.Request, bucket, object string, metada
|
||||
VersionID: vid,
|
||||
}
|
||||
}
|
||||
if !versioned {
|
||||
return opts, InvalidArgument{
|
||||
Bucket: bucket,
|
||||
Object: object,
|
||||
Err: fmt.Errorf("VersionID specified %s, but versioning not enabled on %s", opts.VersionID, bucket),
|
||||
}
|
||||
}
|
||||
}
|
||||
mtime := strings.TrimSpace(r.Header.Get(xhttp.MinIOSourceMTime))
|
||||
if mtime != "" {
|
||||
|
||||
Reference in New Issue
Block a user