allow ListObjects() when a prefix is an object (#17074)

This commit is contained in:
Harshavardhana
2023-04-25 22:41:54 -07:00
committed by GitHub
parent dbd53af369
commit b1f3935c5b
3 changed files with 5 additions and 13 deletions

View File

@@ -1307,7 +1307,7 @@ func (z *erasureServerPools) ListObjects(ctx context.Context, bucket, prefix, ma
}
opts.setBucketMeta(ctx)
if len(prefix) > 0 && maxKeys == 1 && delimiter == "" && marker == "" {
if len(prefix) > 0 && maxKeys == 1 && marker == "" {
// Optimization for certain applications like
// - Cohesity
// - Actifio, Splunk etc.