]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: remove image_map next_state if sets to the same state
authorArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Fri, 6 Aug 2021 13:54:38 +0000 (15:54 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Wed, 12 Jan 2022 09:03:43 +0000 (10:03 +0100)
commitdccecc83ab8becc7e3ca41aaad71184912425f02
treeccacd12c7804caa0726b59669b8db39fe921dc36
parent08d06cb61f08cdd1dcf4cc11b2e02e085b888e32
rbd-mirror: remove image_map next_state if sets to the same state

In some cases, set_state is called with DISSOCIATING, then ASSOCIATING
and DISSOCIATING again. In this case the state DISSOCIATING is
processed to remove the image and then schedule the next action which is
associating.

To fix this case, this commit removes the next_state if the state is
sets to the same state.

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