From 159028ef52d195fba2f5d749406fc440b1ac3e16 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Wed, 26 Aug 2020 14:16:13 +0800 Subject: [PATCH] crush/CrushWrapper: refine comment to improve readability Signed-off-by: Changcheng Liu --- src/crush/CrushWrapper.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index c3a19308d61..cbe6ad6dfc8 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -1123,9 +1123,10 @@ int CrushWrapper::insert_item( int cur = item; - // create locations if locations don't exist and add child in - // location with 0 weight the more detail in the insert_item method - // declaration in CrushWrapper.h + // 1. create locations if locations don't exist + // 2. add child in the location with 0 weight. + // Check more detail of insert_item method declared in + // CrushWrapper.h for (auto p = type_map.begin(); p != type_map.end(); ++p) { // ignore device type if (p->first == 0) -- 2.47.3