]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Update src/mon/MonClient.cc 57718/head
authorNitzanMordhai <97529641+NitzanMordhai@users.noreply.github.com>
Wed, 11 Dec 2024 12:26:42 +0000 (14:26 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Dec 2024 12:26:42 +0000 (14:26 +0200)
Co-authored-by: Bill Scales <156200352+bill-scales@users.noreply.github.com>
Signed-off-by: NitzanMordhai <97529641+NitzanMordhai@users.noreply.github.com>
src/mon/MonClient.cc

index 761b615bb83a3a50718a0bea3e752c41cb9c9c98..b5c06bfb7c1cf204408c8a977b662b48a911e848 100644 (file)
@@ -1249,7 +1249,7 @@ void MonClient::_send_command(MonCommand *r)
   }
 
   // normal CLI command
-  r->sent_name = monmap.get_name(active_con ? (active_con->get_con()->get_peer_addr()) : "");
+  r->sent_name = active_con ? monmap.get_name(active_con->get_con()->get_peer_addr()) : "";
   ldout(cct, 10) << __func__ << " " << r->tid << " " << r->cmd << dendl;
   auto m = ceph::make_message<MMonCommand>(monmap.fsid);
   m->set_tid(r->tid);