From: Vu Pham Date: Fri, 15 May 2015 16:52:20 +0000 (-0700) Subject: xio: save nonce for bind address X-Git-Tag: v9.0.2~106^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c2bba8ebee70eeb1913f02eb1bd78d8315697bc5;p=ceph.git 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 Signed-off-by: Vu Pham --- diff --git a/src/msg/xio/XioMessenger.cc b/src/msg/xio/XioMessenger.cc index 3cfe34aee9da..deb3e4251eeb 100644 --- a/src/msg/xio/XioMessenger.cc +++ b/src/msg/xio/XioMessenger.cc @@ -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; }