]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/rbd_mirror: grab timer lock before calling add_event_after()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 13 Apr 2022 13:24:04 +0000 (15:24 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 13 Apr 2022 13:28:05 +0000 (15:28 +0200)
commit60e16106837e0d23366709f70f39c4f1ae7a2a45
tree58a598854560f02737212c112e8b5b50b051bf0d
parent3c556878cf917850504ef1d3b931d838cef38746
test/rbd_mirror: grab timer lock before calling add_event_after()

add_event_after() expects an externally provided mutex to be held
for the call.  This was missed in commit 8965a0f2a6f7 ("rbd-mirror:
synchronize with in-flight stop in ImageReplayer::stop()").

Fixes: https://tracker.ceph.com/issues/55317
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/test/rbd_mirror/test_mock_ImageReplayer.cc