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:
Vu Pham 2015-05-15 09:52:20 -07:00
parent 355aa0e44b
commit c2bba8ebee

View File

@ -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;
}