]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: add image_map cleanup in LoadRequest
authorArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Tue, 13 Jul 2021 12:19:49 +0000 (14:19 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Wed, 12 Jan 2022 09:03:37 +0000 (10:03 +0100)
commitf096cf5fab86e8748dab5c0c03c9b73c3d996e5f
tree4118734adc2210da02dbca7d3607b3c170397444
parentb259919babb4eef73a0f464e4d0d6bec164904a8
rbd-mirror: add image_map cleanup in LoadRequest

In the LoadRequest in the ImageMap class add initial cleanup to remove
stale entries. To cleanup the LoadRequest will query the mirror image
list and remove all the image_map that are notin the list.

Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
(cherry picked from commit e135403c736295b63fe1c8a861af40de302b8b57)
qa/workunits/rbd/rbd_mirror_journal.sh
qa/workunits/rbd/rbd_mirror_snapshot.sh
src/tools/rbd_mirror/image_map/LoadRequest.cc
src/tools/rbd_mirror/image_map/LoadRequest.h