]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: expand lock scope for snapshot replayer
authorJason Dillaman <dillaman@redhat.com>
Thu, 20 Feb 2020 17:40:15 +0000 (12:40 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 24 Feb 2020 21:03:23 +0000 (16:03 -0500)
commitde4f83ec77d0c79415d310ebc33d5cf5de5aba7d
treeeb0605421d3e44f83081a94a87feb0e277021c28
parent867c7f67c5f80905d46f4e6f2e6c30cb6a20c88c
rbd-mirror: expand lock scope for snapshot replayer

The status callback will need access to the current state, so the
lock should be held while the snapshot scan is in-progress.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.h