From 3188fd8eb72fa45d2f6ea2e802aad83067a406a7 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Tue, 9 Aug 2022 04:01:29 +0400 Subject: [PATCH] [#577] Fix delete from tagging cache Signed-off-by: Angira Kekteeva --- api/layer/tagging.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/layer/tagging.go b/api/layer/tagging.go index 51f6f19b0..48136c331 100644 --- a/api/layer/tagging.go +++ b/api/layer/tagging.go @@ -85,6 +85,8 @@ func (n *layer) DeleteObjectTagging(ctx context.Context, p *ObjectVersion) (*dat return nil, err } + p.VersionID = version.OID.EncodeToString() + n.systemCache.Delete(objectTaggingCacheKey(p)) return version, nil