]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: handle Release messages directly in ReplicaIdle
authorRonen Friedman <rfriedma@redhat.com>
Mon, 25 Mar 2024 13:06:41 +0000 (08:06 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 9 Apr 2024 11:00:27 +0000 (06:00 -0500)
commitdabcb1c3bc31ee179a3849559b7b57553996adb7
tree55bca3d5bcf0a7eeb569b2ae972fbd3c856445ea
parent6b586bd86f480fc45460df0d1bccef8b9e07e0e2
osd/scrub: handle Release messages directly in ReplicaIdle

The expected path is that the scrubber will be in the ReplicaIdle
sub-state. If, however, we are processing a chunk (ReplicaActiveOp) -
the scrub is aborted, and the scrubber is returned to the ReplicaIdle.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 765d4750e2d6c833871540ee446f4208908c9f83)
src/osd/scrubber/scrub_machine.cc
src/osd/scrubber/scrub_machine.h