mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
xio: save nonce for bind address
A missing nonce in the osd addrs was preventing the monitor from detecting osd restarts. XioMessenger::bind() now sets the nonce in the same way that SimpleMessenger and AsyncMessenger do Signed-off-by: Casey Bodley <casey@cohortfs.com> Signed-off-by: Vu Pham <vu@mellanox.com>
This commit is contained in:
parent
355aa0e44b
commit
c2bba8ebee
@ -733,6 +733,7 @@ int XioMessenger::bind(const entity_addr_t& addr)
|
||||
int r = portals.bind(&xio_msgr_ops, base_uri, shift_addr.get_port(), &port0);
|
||||
if (r == 0) {
|
||||
shift_addr.set_port(port0);
|
||||
shift_addr.nonce = nonce;
|
||||
set_myaddr(shift_addr);
|
||||
did_bind = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user