[#472] tree: Don't use sorted GetSubTree for nodes without FileName #472
No reviewers
TrueCloudLab/storage-services-developers
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#472
Loading…
Reference in a new issue
No description provided.
Delete branch "dkirillov/frostfs-s3-gw:bugfix/sorted_get_sub_tree"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sorted GetSubTree doesn't return nodes without FileName attribute
if there are more than 1000 nodes in subtree
Signed-off-by: Denis Kirillov d.kirillov@yadro.com
68e0c18ada
to2a48b022b9
I think we can remove WIP on master branch fix.
@ -35,3 +35,3 @@
GetNodes(ctx context.Context, p *GetNodesParams) ([]NodeResponse, error)
GetSubTree(ctx context.Context, bktInfo *data.BucketInfo, treeID string, rootID []uint64, depth uint32) ([]NodeResponse, error)
GetSubTree(ctx context.Context, bktInfo *data.BucketInfo, treeID string, rootID []uint64, depth uint32, sort bool) ([]NodeResponse, error)
GetSubTreeStream(ctx context.Context, bktInfo *data.BucketInfo, treeID string, rootID []uint64, depth uint32) (SubTreeStream, error)
If we going to use streaming later in #469, shouldn't we adopt
sort
flag in streaming method too? Or it won't be used for anything besidesgetSubTreeMultipartUpload
?We should adopt this flag only if we start streaming parts and not only multiparts
2a48b022b9
to75e536492a
WIP: [#472] tree: Don't use sorted GetSubTree for nodes without FileNameto [#472] tree: Don't use sorted GetSubTree for nodes without FileName