change directory objects to never create new versions (#17109)

This commit is contained in:
Harshavardhana
2023-05-02 16:09:33 -07:00
committed by GitHub
parent 0ec722bc54
commit b53376a3a4
9 changed files with 74 additions and 40 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ func loadPrefixUsageFromBackend(ctx context.Context, objAPI ObjectLayer, bucket
for id, usageInfo := range cache.flattenChildrens(*root) {
prefix := decodeDirObject(strings.TrimPrefix(id, bucket+slashSeparator))
// decodeDirObject to avoid any __XL_DIR__ objects
// decodeDirObject to avoid any __XLDIR__ objects
m[prefix] += uint64(usageInfo.Size)
}
}