forked from TrueCloudLab/frostfs-node
[#1005] engine: Drop shards weights
Unused. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
abea258b65
commit
2ad433dbcb
8 changed files with 65 additions and 77 deletions
|
@ -111,7 +111,7 @@ func (e *StorageEngine) removeObjects(ctx context.Context, ch <-chan oid.Address
|
|||
|
||||
for addr := range ch {
|
||||
h := hrw.StringHash(addr.EncodeToString())
|
||||
shards := sortShardsByWeight(shards, h)
|
||||
hrw.SortHasherSliceByValue(shards, h)
|
||||
found := false
|
||||
for i := range shards {
|
||||
var existsPrm shard.ExistsPrm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue