]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/MonMap: Dump addr in backward compatible format
authorAnoop C S <anoopcs@cryptolab.net>
Fri, 5 Dec 2025 09:25:58 +0000 (14:55 +0530)
committerAnoop C S <anoopcs@cryptolab.net>
Fri, 5 Dec 2025 09:41:53 +0000 (15:11 +0530)
Prior to c5b43e9b2765ff98419c649a5ae53ec16601975d, we dumped only the
legacy string component from public_addrs as `addr`. Ensure that this
backward compatible filtering is retained when dumping MonMap.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
src/mon/MonMap.cc

index f97f6ce5a2f41def39d29f665efd246c32b6ebc5..301cdbd77c77b3a4b23a3471bdd71a863923cf89 100644 (file)
@@ -121,7 +121,7 @@ void mon_info_t::dump(ceph::Formatter *f) const
 {
   f->dump_string("name", name);
   f->dump_object("public_addrs", public_addrs);
-  f->dump_stream("addr") << public_addrs; /* sigh: backwards compat */
+  f->dump_stream("addr") << public_addrs.get_legacy_str(); /* sigh: backwards compat */
   f->dump_string("public_addr", public_addrs.get_legacy_str()); /* sighhhhh */
   f->dump_int("priority", priority);
   f->dump_float("weight", weight);