From 5e60c0f4ddd6084402652007a7ad0a7ac14260d3 Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Mon, 6 Nov 2023 04:03:08 -0600 Subject: [PATCH] osd/scrub: minor tidy-ups Signed-off-by: Ronen Friedman --- src/osd/PG.h | 2 +- src/osd/PrimaryLogPG.cc | 2 +- src/osd/PrimaryLogPG.h | 2 +- src/osd/scrubber/pg_scrubber.h | 4 ++-- src/osd/scrubber_common.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/osd/PG.h b/src/osd/PG.h index 70c1d12b210..2e82e74ab01 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -765,7 +765,7 @@ public: virtual void snap_trimmer(epoch_t epoch_queued) = 0; virtual void do_command( - const std::string_view& prefix, + std::string_view prefix, const cmdmap_t& cmdmap, const ceph::buffer::list& idata, std::function on_finish) = 0; diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 656b7ab4b0a..ba13b9afa9b 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -999,7 +999,7 @@ PrimaryLogPG::get_pgls_filter(bufferlist::const_iterator& iter) // ========================================================== void PrimaryLogPG::do_command( - const string_view& orig_prefix, + string_view orig_prefix, const cmdmap_t& cmdmap, const bufferlist& idata, std::function on_finish) diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index 334ecb0d418..6ed29927463 100644 --- a/src/osd/PrimaryLogPG.h +++ b/src/osd/PrimaryLogPG.h @@ -1478,7 +1478,7 @@ public: ~PrimaryLogPG() override; void do_command( - const std::string_view& prefix, + std::string_view prefix, const cmdmap_t& cmdmap, const ceph::buffer::list& idata, std::function on_finish) override; diff --git a/src/osd/scrubber/pg_scrubber.h b/src/osd/scrubber/pg_scrubber.h index ca26e359578..996b26781be 100644 --- a/src/osd/scrubber/pg_scrubber.h +++ b/src/osd/scrubber/pg_scrubber.h @@ -20,7 +20,7 @@ Main Scrubber interfaces: └────────────────────────────────┬──────────────────┘ │ │ - │ ownes & uses + │ owns & uses │ │ │ @@ -43,7 +43,7 @@ Main Scrubber interfaces: │ PrimaryLogScrub │ │ └─────┬───────────────────┬─────────────────────────┘ │ │ │ implements - │ ownes & uses │ │ + │ owns & uses │ │ │ │ ┌─────────────────────────▼──────┐ │ │ │ <> │ │ │ └─────────▲──────────────────────┘ diff --git a/src/osd/scrubber_common.h b/src/osd/scrubber_common.h index f717d41fa41..52890a8d1f0 100644 --- a/src/osd/scrubber_common.h +++ b/src/osd/scrubber_common.h @@ -92,7 +92,7 @@ struct PgScrubBeListener { // query the PG backend for the on-disk size of an object virtual uint64_t logical_to_ondisk_size(uint64_t logical_size) const = 0; - // used to verify our "cleaness" before scrubbing + // used to verify our "cleanliness" before scrubbing virtual bool is_waiting_for_unreadable_object() const = 0; }; -- 2.39.5