mirror of
https://github.com/minio/minio.git
synced 2025-07-13 11:01:05 -04:00
fix: honor renamePart's PathNotFound (#21378)
This commit is contained in:
parent
e1fcaebc77
commit
a6c538c5a1
@ -2976,7 +2976,7 @@ func (s *xlStorage) RenamePart(ctx context.Context, srcVolume, srcPath, dstVolum
|
||||
return errFileAccessDenied
|
||||
}
|
||||
err = osErrToFileErr(err)
|
||||
if errors.Is(err, errFileNotFound) {
|
||||
if errors.Is(err, errFileNotFound) || errors.Is(err, errFileAccessDenied) {
|
||||
return errUploadIDNotFound
|
||||
}
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user