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: v16.1.0~1173^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36829%2Fhead;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 b7bad6f45f30..af4c283364b5 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 */