From: Anoop C S Date: Fri, 5 Dec 2025 09:25:58 +0000 (+0530) Subject: mon/MonMap: Dump addr in backward compatible format X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=01c85255bc9b266ecf9bd3b58d2a8d4cb4650d7f;p=ceph-ci.git mon/MonMap: Dump addr in backward compatible format 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 --- diff --git a/src/mon/MonMap.cc b/src/mon/MonMap.cc index f97f6ce5a2f..301cdbd77c7 100644 --- a/src/mon/MonMap.cc +++ b/src/mon/MonMap.cc @@ -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);