rbd-mirror: prevent blacklisting of local instance after failover/back
authorJason Dillaman <dillaman@redhat.com>
Mon, 7 May 2018 21:43:13 +0000 (14:43 -0700)
committerJason Dillaman <dillaman@redhat.com>
Sat, 19 May 2018 12:16:38 +0000 (08:16 -0400)
commit4ec33eacc49085384a01058a692d1d8c740d6030
tree72d6898acbdd320e07302e161768c9f65f566b49
parent7c9b263d67fd37175d12f969a81d2f5420b84499
rbd-mirror: prevent blacklisting of local instance after failover/back

If the leader role is manually released, upon failback the instance
will have removed its local instance object, preventing RPC
messaging.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit ce974305893c4262b62547ce184d514578358218)
src/test/rbd_mirror/test_Instances.cc
src/test/rbd_mirror/test_mock_LeaderWatcher.cc
src/tools/rbd_mirror/Instances.cc
src/tools/rbd_mirror/Instances.h
src/tools/rbd_mirror/LeaderWatcher.cc
src/tools/rbd_mirror/LeaderWatcher.h