metacache: Make very small requests transient (#11109)

This commit is contained in:
Klaus Post authored and GitHub committed 2020-12-15 11:25:36 -08:00
1 parent 5df61ab96b
commit e7d3b49a20
3 files changed
+25 -7

No files matched your search

+1 -1
View File
@@ -707,7 +707,7 @@ func (z *erasureServerPools) ListObjectVersions(ctx context.Context, bucket, pre
// more objects matching the prefix.
ri := logger.GetReqInfo(ctx)
if ri != nil && strings.Contains(ri.UserAgent, `1.0 Veeam/1.0 Backup`) && strings.HasSuffix(prefix, ".blk") {
opts.singleObject = true
opts.discardResult = true
opts.Transient = true
}