mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
Merge pull request #13940 from Adirl/out
msg/async/rdma: Update fix broken compilation Reviewed-by: Haomai Wang <haomai@xsky.com>
This commit is contained in:
commit
5da652e1d9
@ -110,6 +110,10 @@ int RDMAServerConnTCP::accept(ConnectedSocket *sock, const SocketOptions &opt, e
|
||||
::close(sd);
|
||||
return -errno;
|
||||
}
|
||||
|
||||
assert(NULL != out); //out should not be NULL in accept connection
|
||||
|
||||
out->set_sockaddr((sockaddr*)&ss);
|
||||
net.set_priority(sd, opt.priority, out->get_family());
|
||||
|
||||
RDMAConnectedSocketImpl *server;
|
||||
@ -119,8 +123,6 @@ int RDMAServerConnTCP::accept(ConnectedSocket *sock, const SocketOptions &opt, e
|
||||
ldout(cct, 20) << __func__ << " accepted a new QP, tcp_fd: " << sd << dendl;
|
||||
std::unique_ptr<RDMAConnectedSocketImpl> csi(server);
|
||||
*sock = ConnectedSocket(std::move(csi));
|
||||
if (out)
|
||||
out->set_sockaddr((sockaddr*)&ss);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user