]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrubber: simplify existing reservation case in handle_scrub_reserve_request
authorSamuel Just <sjust@redhat.com>
Wed, 8 Feb 2023 06:44:36 +0000 (22:44 -0800)
committerSamuel Just <sjust@redhat.com>
Wed, 12 Apr 2023 03:39:19 +0000 (20:39 -0700)
commite29dd06df931a1cc3a58f88d0d2751bbbb17ee31
tree507821eb84ed3da055b1d596ceb0aa70f72ae393
parent10e9b56e0e31cc7e4185297623a5cfed7a8eee30
osd/scrubber: simplify existing reservation case in handle_scrub_reserve_request

First, the is_stale() case should be impossible.  This patch leaves an
error message rather than an assert.

Second, this patch removes the special handling for receiving a reservation
when m_remote_osd_resource is already populated.  The next patch will exploit
the fact that all calls to m_remote_osd_resource.reset() and advance_token()
occur together.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/pg_scrubber.h