]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/rbd_mirror: race in TestMockImageMap.AddInstancePingPongImageTest
authorMykola Golub <mgolub@suse.com>
Fri, 2 Nov 2018 17:41:02 +0000 (19:41 +0200)
committerMykola Golub <mgolub@suse.com>
Fri, 2 Nov 2018 17:47:55 +0000 (19:47 +0200)
commitc796aecc2e424bc5774e6dd58e672502be297cbf
treea396ff9cb30972f7410654bf2206feec74ce065b
parenta7bb772e117d64844f6af5c3c5e03ca964d4f2f6
test/rbd_mirror: race in TestMockImageMap.AddInstancePingPongImageTest

Remove a context from peer_ack_ctxs before completing to avoid a race
with a listener inserting a new one.

Fixes: http://tracker.ceph.com/issues/36683
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/test/rbd_mirror/test_mock_ImageMap.cc