]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: skip closing local image if it was already closed
authorJason Dillaman <dillaman@redhat.com>
Sun, 12 Jan 2020 15:05:04 +0000 (10:05 -0500)
committerJason Dillaman <dillaman@redhat.com>
Sun, 12 Jan 2020 15:05:04 +0000 (10:05 -0500)
commit9d79a4dd47397bc064b55db224a692148108e2b9
treed194663451a594f54c3250f4b0bd7de6b13b4e9b
parent0f8e65f03b35e507ac9d3b16c5ae7d9119942664
rbd-mirror: skip closing local image if it was already closed

If the journal replayer finishes relaying (error or promotion), it will
close the local image. However, the image replayer state machine will also
shut down the journal replayer (again) which might result in attempting
to close the local image again.

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