mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
Filter out tiering metadata during CopyObject (#15936)
This commit is contained in:
committed by
GitHub
parent
1633b30979
commit
0c34e51a75
@@ -909,6 +909,11 @@ func getCpObjMetadataFromHeader(ctx context.Context, r *http.Request, userMeta m
|
||||
// to change the original one.
|
||||
defaultMeta := make(map[string]string, len(userMeta))
|
||||
for k, v := range userMeta {
|
||||
// skip tier metadata when copying metadata from source object
|
||||
switch k {
|
||||
case metaTierName, metaTierStatus, metaTierObjName, metaTierVersionID:
|
||||
continue
|
||||
}
|
||||
defaultMeta[k] = v
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user