]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rbd-mirror: pool watcher registration error might result in race 36479/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 5 Aug 2020 16:36:26 +0000 (12:36 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 5 Aug 2020 16:36:26 +0000 (12:36 -0400)
commitc89d31ebf6c412d609123979c63ebc600b70e179
tree9f9b81fe674e6bdd32255685af5b497824d671ab
parentfc7a6ef79af68f744ab0a01b39adc3a3dfacd518
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>
src/tools/rbd_mirror/PoolWatcher.cc