]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushWrapper: refine type_map/name_map comment 36829/head
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 26 Aug 2020 01:41:42 +0000 (09:41 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Sun, 6 Sep 2020 13:01:52 +0000 (21:01 +0800)
type_map is the item(bucket & device) type id and its type name.
name_map is the item(bucket & device) id and its name.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/crush/CrushWrapper.h

index b7bad6f45f30b50ec1faadf85d93531614d10ef2..af4c283364b5543cd143cec352e3f2e7a3475975 100644 (file)
@@ -59,8 +59,8 @@ public:
     DEFAULT_CHOOSE_ARGS = -1
   };
 
-  std::map<int32_t, std::string> type_map; /* bucket/device type names */
-  std::map<int32_t, std::string> name_map; /* bucket/device names */
+  std::map<int32_t, std::string> type_map; // item(bucket/device) type id ==> item type name
+  std::map<int32_t, std::string> name_map; // item id ==> item name
   std::map<int32_t, std::string> rule_name_map;
 
   std::map<int32_t, int32_t> class_map; /* item id -> class id */