]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushWrapper: refine comment to improve readability
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 26 Aug 2020 06:16:13 +0000 (14:16 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Sun, 6 Sep 2020 13:01:52 +0000 (21:01 +0800)
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/crush/CrushWrapper.cc

index c3a19308d61cb3cacdd4619fa72e71c3b5010283..cbe6ad6dfc8f53215cd69b7d498b65f4ff7b7c36 100644 (file)
@@ -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)