From 2a933f48befb99bcbe3ca205b49a2d27e5003eb7 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Tue, 9 Aug 2022 15:43:45 +0400 Subject: [PATCH] [#577] Remove redundant set of isLatest Signed-off-by: Angira Kekteeva --- api/layer/object.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/layer/object.go b/api/layer/object.go index f219a622d..14971d470 100644 --- a/api/layer/object.go +++ b/api/layer/object.go @@ -233,7 +233,6 @@ func (n *layer) PutObject(ctx context.Context, p *PutObjectParams) (*data.Object extendedObjInfo := &data.ExtendedObjectInfo{ ObjectInfo: objInfo, NodeVersion: newVersion, - IsLatest: false, } if err = n.objCache.PutObject(extendedObjInfo); err != nil { @@ -278,7 +277,6 @@ func (n *layer) headLastVersionIfNotDeleted(ctx context.Context, bkt *data.Bucke extObjInfo := &data.ExtendedObjectInfo{ ObjectInfo: objInfo, NodeVersion: node, - IsLatest: true, } if err = n.objCache.PutObject(extObjInfo); err != nil {