diff options
Diffstat (limited to 'src/crimson/net/Socket.cc')
-rw-r--r-- | src/crimson/net/Socket.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crimson/net/Socket.cc b/src/crimson/net/Socket.cc index 95b1e225034..3a7aeaf9651 100644 --- a/src/crimson/net/Socket.cc +++ b/src/crimson/net/Socket.cc @@ -8,6 +8,7 @@ #include <seastar/net/packet.hh> #include "crimson/common/log.h" +#include "include/random.h" // for ceph::util::generate_random_number() #include "Errors.h" using crimson::common::local_conf; @@ -290,7 +291,7 @@ Socket::connect(const entity_addr_t &peer_addr) auto ret = std::make_unique<Socket>( std::move(socket), side_t::connector, 0, construct_tag{}); logger().debug("Socket::connect(): connected to {}, socket {}", - peer_addr, fmt::ptr(ret)); + peer_addr, fmt::ptr(ret.get())); return ret; }); } @@ -431,7 +432,7 @@ ShardedServerSocket::accept(accept_func_t &&_fn_accept) peer_addr.get_port(), Socket::construct_tag{}); logger().debug("ShardedServerSocket({})::accept(): accepted peer {}, " "socket {}, dispatch_only_on_primary_sid = {}", - ss.listen_addr, peer_addr, fmt::ptr(_socket), + ss.listen_addr, peer_addr, fmt::ptr(_socket.get()), ss.dispatch_only_on_primary_sid); std::ignore = seastar::with_gate( ss.shutdown_gate, |