From 0d87e967dd84e104f1874802fd5b9b7ec9ca3d3d Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Wed, 26 Aug 2020 14:18:34 +0800 Subject: [PATCH] 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 --- src/crush/CrushWrapper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3