forked from TrueCloudLab/frostfs-node
[#160] Classify only regular objects as root
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
1c12f6bcbf
commit
2c50032831
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ func objectIndices(obj *object.Object, parent bool) []bucketItem {
|
||||||
res := make([]bucketItem, 0, 5+len(as))
|
res := make([]bucketItem, 0, 5+len(as))
|
||||||
|
|
||||||
rootVal := v2object.BooleanPropertyValueTrue
|
rootVal := v2object.BooleanPropertyValueTrue
|
||||||
if obj.HasParent() {
|
if obj.GetType() != objectSDK.TypeRegular || obj.HasParent() {
|
||||||
rootVal = ""
|
rootVal = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue