From: Changcheng Liu Date: Wed, 26 Aug 2020 06:16:13 +0000 (+0800) Subject: crush/CrushWrapper: refine comment to improve readability X-Git-Tag: v16.1.0~1173^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=159028ef52d195fba2f5d749406fc440b1ac3e16;p=ceph.git crush/CrushWrapper: refine comment to improve readability Signed-off-by: Changcheng Liu --- diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index c3a19308d61c..cbe6ad6dfc8f 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)