]> git-server-git.apps.pok.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, 5 Jan 2026 21:23:35 +0000 (16:23 -0500)
For easier selection without hard-coded constants.

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

index 362fc43718103dad5196c7b9f562402270de64a3..79422fd8e55bf5ba5ca5ea015c18dbbf6bfad32a 100644 (file)
@@ -57,6 +57,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);
 }