From 2c500328319fd0bcda6e193d9d67862a8df019c2 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 6 Nov 2020 17:06:15 +0300 Subject: [PATCH] [#160] Classify only regular objects as root Signed-off-by: Alex Vanin --- pkg/local_object_storage/metabase/put.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local_object_storage/metabase/put.go b/pkg/local_object_storage/metabase/put.go index 8a287e2fc..f958f1782 100644 --- a/pkg/local_object_storage/metabase/put.go +++ b/pkg/local_object_storage/metabase/put.go @@ -99,7 +99,7 @@ func objectIndices(obj *object.Object, parent bool) []bucketItem { res := make([]bucketItem, 0, 5+len(as)) rootVal := v2object.BooleanPropertyValueTrue - if obj.HasParent() { + if obj.GetType() != objectSDK.TypeRegular || obj.HasParent() { rootVal = "" }