]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: use a random nonce in Messenger
authorJohn Spray <john.spray@redhat.com>
Mon, 19 Sep 2016 14:22:01 +0000 (15:22 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 19 Sep 2016 19:31:36 +0000 (20:31 +0100)
commit5ba612882750dae6f0b057c660cd283293a18a3f
tree8fc2ae7d4963c86658b52f7b51705ec843fdcb1c
parent22053d057fb03e9c932da2771d7c90556567d1e4
mds: use a random nonce in Messenger

The MDS is a client to the OSDs, and responds
to blacklists by respawning itself.  Usually
respawns of a daemonized process result in a PID
change, but it's not guaranteed, and it's definitely
not the case when someone runs in foreground (e.g.
teuthology).

Using a random nonce makes sure we won't match
against an existing blacklist entry from a failed
instance of an MDS daemon with the same name as us.

Related to: http://tracker.ceph.com/issues/17236
Signed-off-by: John Spray <john.spray@redhat.com>
src/ceph_mds.cc