]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msgr: adjust nonce on rebind()
authorSage Weil <sage@inktank.com>
Tue, 16 Jul 2013 23:25:28 +0000 (16:25 -0700)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 23:20:36 +0000 (16:20 -0700)
commit540a6f49d402c1990f0e0fe9f8897dd664e79501
treefd6347f53218295e7ff2a1904c4b14a36ad79b72
parentf938a5bf604885ffba65a9b86e19258ca254e58c
msgr: adjust nonce on rebind()

We can have a situation where:

 - we have a pipe to a peer
 - pipe goes to standby (on peer)
 - we rebind to a new port
 - ....
 - we rebind again to the same old port
 - we connect to peer

and get reattached to the ancient pipe from two instances back.  Avoid that
by picking a new nonce each time we rebind.

Add 1,000,000 each time so that the port is still legible in the printed
output.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 994e2bf224ab7b7d5b832485ee14de05354d2ddf)

Conflicts:

src/msg/Accepter.cc
src/msg/Accepter.cc