]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrubber: make PgScrubber::check_interval const
authorSamuel Just <sjust@redhat.com>
Thu, 9 Feb 2023 20:45:25 +0000 (12:45 -0800)
committerSamuel Just <sjust@redhat.com>
Wed, 12 Apr 2023 03:39:19 +0000 (20:39 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/pg_scrubber.h

index f502482afc89f09d1cf128680d6990e9cb2a86c0..93ed71304182959a69181850e87b52a07331b14a 100644 (file)
@@ -89,7 +89,7 @@ ostream& operator<<(ostream& out, const requested_scrub_t& sf)
  * PrimaryLogPG::on_change() was called when that interval ended. We can safely
  * discard the stale message.
  */
-bool PgScrubber::check_interval(epoch_t epoch_to_verify)
+bool PgScrubber::check_interval(epoch_t epoch_to_verify) const
 {
   return epoch_to_verify >= m_pg->get_same_interval_since();
 }
index 3a3fd154a1778101d406d2befd2b4d647721c60c..5243927c372ee765f3d02275df3fd99c336e999b 100644 (file)
@@ -728,7 +728,7 @@ class PgScrubber : public ScrubPgIF,
    */
   [[nodiscard]] bool verify_against_abort(epoch_t epoch_to_verify);
 
-  [[nodiscard]] bool check_interval(epoch_t epoch_to_verify);
+  [[nodiscard]] bool check_interval(epoch_t epoch_to_verify) const;
 
   epoch_t m_last_aborted{};  // last time we've noticed a request to abort