]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rbd-mirror: pool watcher registration error might result in race 37208/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 5 Aug 2020 16:36:26 +0000 (12:36 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 17 Sep 2020 05:08:55 +0000 (07:08 +0200)
commitc88afe83e4dbf6f817d45a9e52fd67aa2b918401
tree8d39cb8c6ec09a0bae3859b6fe4369644f38fb86
parentc7c18e15601e3c2eca96c17b80e82e87c1fa14e1
test/rbd-mirror: pool watcher registration error might result in race

The init finish context should be swapped out before it attempts to
re-register the watcher. This affects the test case which mocks the
timer to fire immediately instead of after 30 seconds.

Fixes: https://tracker.ceph.com/issues/46669
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit c89d31ebf6c412d609123979c63ebc600b70e179)
src/tools/rbd_mirror/PoolWatcher.cc