]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: remove image_map next_state if sets to the same state 41696/head
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, 18 Aug 2021 16:52:47 +0000 (18:52 +0200)
commitb664a95889b35d0d3afbd8428e3af4976d7f81eb
treebdbff40831afdc16b0b0636d59f31e2c68ad6681
parent965bc4150eafc8e3bbe69f63beea9c7fbb20ceb6
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>
src/tools/rbd_mirror/image_map/Policy.cc