forked from TrueCloudLab/frostfs-s3-gw
[#713] Fix cache access
User can access only keys that he puts into caches Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
c6098e53f6
commit
3d31c2ab4a
14 changed files with 365 additions and 196 deletions
|
@ -461,7 +461,7 @@ func (n *layer) CompleteMultipartUpload(ctx context.Context, p *CompleteMultipar
|
|||
zap.Error(err))
|
||||
}
|
||||
addr.SetObject(partInfo.OID)
|
||||
n.objCache.Delete(addr)
|
||||
n.cache.DeleteObject(addr)
|
||||
}
|
||||
|
||||
return uploadData, obj, n.treeService.DeleteMultipartUpload(ctx, p.Info.Bkt, multipartInfo.ID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue