]> 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>
Wed, 1 Oct 2025 18:47:11 +0000 (14:47 -0400)
For easier selection without hard-coded constants.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/common/entity_name.cc

index ca0d72a9af7a820c68f28bfa9cd453e99e408410..929b65f68652beedc3f5e7f3f7fb8c67ad91f2ef 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);
 }