]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: remove image_mapped condition to remove image_map
authorArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Thu, 22 Jul 2021 16:53:16 +0000 (18:53 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Wed, 12 Jan 2022 09:03:40 +0000 (10:03 +0100)
commit88da13495d5d58fc5caff59ea624f6a5e1a2b8d4
tree40520e800e572e310398519ac65fd104c53c6ce2
parent8b563dd29496c2cceae3ec99781468496a44b8ca
rbd-mirror: remove image_mapped condition to remove image_map

In some split-brain scenario the image is removed while the image_mapped
is false. This prevents the removal of image_map in OMAP and thus the
entry will not be removed until the daemon is restarted.

Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
(cherry picked from commit 35398a5e17dc5a536ccd63417c937f2efe742654)
src/tools/rbd_mirror/ImageMap.cc