mirror of
https://github.com/minio/minio.git
synced 2026-02-12 22:00:16 -05: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:
@@ -67,6 +67,9 @@ var errVolumeExists = StorageErr("volume already exists")
|
||||
// errIsNotRegular - not of regular file type.
|
||||
var errIsNotRegular = StorageErr("not of regular file type")
|
||||
|
||||
// errPathNotFound - cannot find the path.
|
||||
var errPathNotFound = StorageErr("path not found")
|
||||
|
||||
// errVolumeNotFound - cannot find the volume.
|
||||
var errVolumeNotFound = StorageErr("volume not found")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user