mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Fix multipart restore to remove part match (#12161)
Part ETags are not available after multipart finalizes, removing this check as not useful. Signed-off-by: Poorna Krishnamoorthy <poorna@minio.io> Co-authored-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
committed by
GitHub
parent
26544848ea
commit
4be0f92067
@@ -1858,8 +1858,7 @@ func (s *xlStorage) RenameData(ctx context.Context, srcVolume, srcPath string, f
|
||||
var srcDataPath string
|
||||
var dstDataPath string
|
||||
dataDir := retainSlash(fi.DataDir)
|
||||
// no need to rename dataDir paths for objects that are in transitionComplete state.
|
||||
if dataDir != "" && fi.TransitionStatus != lifecycle.TransitionComplete {
|
||||
if dataDir != "" {
|
||||
srcDataPath = retainSlash(pathJoin(srcVolumeDir, srcPath, dataDir))
|
||||
// make sure to always use path.Join here, do not use pathJoin as
|
||||
// it would additionally add `/` at the end and it comes in the
|
||||
|
||||
Reference in New Issue
Block a user