In the prolog of "for loop" statement, it writes "add child in the
location with 0 weight"
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
if (!name_exists(q->second)) {
ldout(cct, 5) << "insert_item creating bucket " << q->second << dendl;
- int empty = 0, newid;
+ int zero_weight = 0, newid;
int r = add_bucket(0, 0,
- CRUSH_HASH_DEFAULT, p->first, 1, &cur, &empty, &newid);
+ CRUSH_HASH_DEFAULT, p->first, 1, &cur, &zero_weight, &newid);
if (r < 0) {
ldout(cct, 1) << "add_bucket failure error: " << cpp_strerror(r)
<< dendl;