mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
parentDirIsObject() to return quickly with inexistant parent (#11204)
Rewrite parentIsObject() function. Currently if a client uploads a/b/c/d, we always check if c, b, a are actual objects or not. The new code will check with the reverse order and quickly quit if the segment doesn't exist. So if a, b, c in 'a/b/c' does not exist in the first place, then returns false quickly.
This commit is contained in:
1 parent
677e80c0f8
commit
c9d502e6fa
6 files changed
+30
-15
No files matched your search
@@ -82,6 +82,8 @@ func toStorageErr(err error) error {
|
||||
return errFileNameTooLong
|
||||
case errFileAccessDenied.Error():
|
||||
return errFileAccessDenied
|
||||
case errPathNotFound.Error():
|
||||
return errPathNotFound
|
||||
case errIsNotRegular.Error():
|
||||
return errIsNotRegular
|
||||
case errVolumeNotEmpty.Error():
|
||||
|
||||
Reference in new issue
Block a user