mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
crush: fix bucket_adjust_item_weight() won't update weight-set correctly
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
dc8f925cb4
commit
d62c9f16cb
@ -1678,8 +1678,8 @@ int CrushWrapper::bucket_adjust_item_weight(CephContext *cct, crush_bucket *buck
|
||||
if (bucket->items[position] == item)
|
||||
break;
|
||||
assert(position != bucket->size);
|
||||
for (auto w : choose_args) {
|
||||
crush_choose_arg_map arg_map = w.second;
|
||||
for (auto &w : choose_args) {
|
||||
crush_choose_arg_map &arg_map = w.second;
|
||||
crush_choose_arg *arg = &arg_map.args[-1-bucket->id];
|
||||
for (__u32 j = 0; j < arg->weight_set_size; j++) {
|
||||
crush_weight_set *weight_set = &arg->weight_set[j];
|
||||
|
Loading…
Reference in New Issue
Block a user