From 57873ca7798cd00b818965384d1045904d544a0c Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Wed, 26 Aug 2020 09:41:42 +0800 Subject: [PATCH] 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 --- src/crush/CrushWrapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5