Sort items by default in frostfs-cli output #694
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#694
Loading…
Reference in a new issue
No description provided.
Delete branch "elebedeva/frostfs-node:sort-output"
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?
Close #333
Signed-off-by: Ekaterina Lebedeva ekaterina.lebedeva@yadro.com
The task was about all the commands, but not specifically about
shards list
. I suggest we consider a more global solution.Sort items by shard ID in frostfs-cli outputto WIP: Sort items by shard ID in frostfs-cli outputbb668977e0
to5841e163fc
5841e163fc
to394458fa92
WIP: Sort items by shard ID in frostfs-cli outputto Sort items by shard ID in frostfs-cli output@ -72,0 +78,4 @@
tmp2 := make([]byte, 32)
list[i].Encode(tmp1)
list[j].Encode(tmp2)
return bytes.Compare(tmp1, tmp2) < 0
I suppose
could be much simpler.
Also, I recommend to use
lhs, rhs
names insteadtmp1, tmp2
- these names are common for the such functorsfixed
394458fa92
tob8c3c2486d
Sort items by shard ID in frostfs-cli outputto Sort items by default in frostfs-cli output