mirror of
https://github.com/minio/minio.git
synced 2025-12-08 16:53:11 -05:00
collapse two distinct calls into single RenameData() call (#12093)
This is an optimization by reducing one extra system call, and many network operations. This reduction should increase the performance for small file workloads.
This commit is contained in:
@@ -1231,6 +1231,7 @@ func (z xlMetaV2) ToFileInfo(volume, path, versionID string) (fi FileInfo, err e
|
||||
if versionID != "" && versionID != nullVersionID {
|
||||
uv, err = uuid.Parse(versionID)
|
||||
if err != nil {
|
||||
logger.LogIf(GlobalContext, fmt.Errorf("invalid versionID specified %s", versionID))
|
||||
return FileInfo{}, errFileVersionNotFound
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user