]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: fix missing 'const' on some formatters
authorRonen Friedman <rfriedma@redhat.com>
Sat, 24 Aug 2024 11:41:44 +0000 (06:41 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 25 Aug 2024 13:01:00 +0000 (08:01 -0500)
required to pass CI checks.

co-author: Matan Breizman <mbreizma@redhat.com>
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber_common.h

index 51d5d5e5641b4a2449486e2935b75e542332285b..60c1a68d2bea42935ee6eec99457c3171573f650 100644 (file)
@@ -243,7 +243,7 @@ namespace fmt {
 template <>
 struct formatter<Scrub::delay_cause_t> : ::fmt::formatter<std::string_view> {
   template <typename FormatContext>
-  auto format(Scrub::delay_cause_t cause, FormatContext& ctx)
+  auto format(Scrub::delay_cause_t cause, FormatContext& ctx) const
   {
     using enum Scrub::delay_cause_t;
     std::string_view desc;
@@ -359,7 +359,7 @@ struct fmt::formatter<requested_scrub_t> {
   constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
 
   template <typename FormatContext>
-  auto format(const requested_scrub_t& rs, FormatContext& ctx)
+  auto format(const requested_scrub_t& rs, FormatContext& ctx) const
   {
     return fmt::format_to(ctx.out(),
                           "(plnd:{}{}{}{}{}{})",