]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common/entity_name: dump type name as string
authorPatrick Donnelly <pdonnell@ibm.com>
Fri, 13 Jun 2025 20:52:23 +0000 (16:52 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 22 Sep 2025 16:35:20 +0000 (12:35 -0400)
For easier selection without hard-coded constants.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit 68f49f498ceefcbe85a8d4cdbcb953e66fe9f704)

src/common/entity_name.cc

index 4aa609d1268c1130a29dcebec47a92b1e15e8d96..895f32f2b6fe4e87cb0b77a8bb5caa9dba866e26 100644 (file)
@@ -56,6 +56,7 @@ static const std::vector<std::pair<entity_type_t, std::string>> STR_TO_ENTITY_TY
 
 void EntityName::dump(ceph::Formatter *f) const {
   f->dump_int("type", type);
+  f->dump_string("type_str", get_type_name());
   f->dump_string("id", id);
 }