From: Changcheng Liu Date: Wed, 26 Aug 2020 01:41:42 +0000 (+0800) Subject: crush/CrushWrapper: refine type_map/name_map comment X-Git-Tag: v17.0.0~1205^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=57873ca7798cd00b818965384d1045904d544a0c;p=ceph.git crush/CrushWrapper: refine type_map/name_map comment 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 --- diff --git a/src/crush/CrushWrapper.h b/src/crush/CrushWrapper.h index b7bad6f45f30b..af4c283364b55 100644 --- a/src/crush/CrushWrapper.h +++ b/src/crush/CrushWrapper.h @@ -59,8 +59,8 @@ public: DEFAULT_CHOOSE_ARGS = -1 }; - std::map type_map; /* bucket/device type names */ - std::map name_map; /* bucket/device names */ + std::map type_map; // item(bucket/device) type id ==> item type name + std::map name_map; // item id ==> item name std::map rule_name_map; std::map class_map; /* item id -> class id */