metacache: Make very small requests transient (#11109)

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

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
}