]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/mon/MonClient: handle mon client connection race
authorSamuel Just <sjust@redhat.com>
Thu, 30 May 2019 00:31:57 +0000 (17:31 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 31 May 2019 21:05:44 +0000 (14:05 -0700)
commitd07592eab731c35ae8142bbdd682248bdedd6d4e
treed74f7579092cfbf234e5c6a0ff24ac7b95d81a90
parentc839c2d42b29034d2c9c3a47fb745d9d82548040
crimson/mon/MonClient: handle mon client connection race

The first to establish a connection and close the others needs
to ensure that the others don't mess with broken state.  To that
end, leave a cleared pending_conns map while the conns are being
closed.  Also, take care to clean up outstanding promises and
fallout from conns disappearing.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/mon/MonClient.cc
src/crimson/mon/MonClient.h