From: Changcheng Liu Date: Wed, 26 Aug 2020 06:18:34 +0000 (+0800) Subject: crush/CrushWrapper: align variable name with comment X-Git-Tag: v16.1.0~1173^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0d87e967dd84e104f1874802fd5b9b7ec9ca3d3d;p=ceph.git crush/CrushWrapper: align variable name with comment In the prolog of "for loop" statement, it writes "add child in the location with 0 weight" Signed-off-by: Changcheng Liu --- diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index cbe6ad6dfc8f..355311dbd959 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -1143,9 +1143,9 @@ int CrushWrapper::insert_item( 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;