]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: correct race conditions within leader watcher 13737/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 3 Mar 2017 21:06:25 +0000 (16:06 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 10 Mar 2017 02:17:07 +0000 (21:17 -0500)
commit6be6625024de8a8e71d577194f2f20073b58f85f
treee0c62e13978629e2ce222dcfb6673cf3f8968337
parent00591653bce59ecf87ba06bc6c9b639de3949806
rbd-mirror: correct race conditions within leader watcher

It was possible for multiple, concurrent acquire attempts to be
running for a single instance due to notification messages. Now
only a single acquire state machine can be running.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/managed_lock/Types.h
src/test/rbd_mirror/test_mock_LeaderWatcher.cc
src/tools/rbd_mirror/LeaderWatcher.cc
src/tools/rbd_mirror/LeaderWatcher.h