]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MonClient: be less aggressive/paranoid about reopening mon connections
authorSage Weil <sage@redhat.com>
Thu, 10 Jan 2019 23:17:24 +0000 (17:17 -0600)
committerSage Weil <sage@redhat.com>
Thu, 10 Jan 2019 23:18:38 +0000 (17:18 -0600)
commita210f7dd3b79f0bad55ce7f5bc1e671da996a5f6
treee90c0d756f297264691e2ca43a7c5b6aa214b13b
parentd0af9eaa7367a2c5a3b64e5a211fd9eb270505eb
mon/MonClient: be less aggressive/paranoid about reopening mon connections

Previously we were reopening any time the name of our mon changed.  That
was pretty much every time, since we started out with names from the
seed monmap like 'noname-[abc]' that never match the real mons.

Instead, only reopen if the addr we are connecting to is no longer in the
monmap.  We don't actually care about the mon's name.

Fixes: http://tracker.ceph.com/issues/37868
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc