fix: inlined objects don't need to honor long locks (#17039)

This commit is contained in:
Harshavardhana authored and GitHub committed 2023-04-17 12:16:37 -07:00
1 parent 18515a4e3b
commit 6825bd7e75
19 files changed
+97 -111

No files matched your search

+1 -1
View File
@@ -838,10 +838,10 @@ func (z *erasureServerPools) decommissionPool(ctx context.Context, idx int, pool
encodeDirObject(version.Name),
nil,
http.Header{},
noLock, // all mutations are blocked reads are safe without locks.
ObjectOptions{
VersionID: version.VersionID,
NoDecryption: true,
NoLock: true,
})
if isErrObjectNotFound(err) || isErrVersionNotFound(err) {
// object deleted by the application, nothing to do here we move on.