]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/recovery_backend: scan_for_backfill pass start by value
authorMatan Breizman <mbreizma@redhat.com>
Tue, 4 Mar 2025 15:20:29 +0000 (15:20 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 10 Mar 2025 12:56:52 +0000 (12:56 +0000)
See: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-reference-parameters

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/recovery_backend.cc
src/crimson/osd/recovery_backend.h

index 892419eeb94655caa3162370348bf5718190da89..6924e26ad14dc3a127772ff048aca08ebf461983 100644 (file)
@@ -222,7 +222,7 @@ RecoveryBackend::handle_backfill_remove(
 
 RecoveryBackend::interruptible_future<BackfillInterval>
 RecoveryBackend::scan_for_backfill(
-  const hobject_t& start,
+  const hobject_t start,
   [[maybe_unused]] const std::int64_t min,
   const std::int64_t max)
 {
index 2d755d54789feb89eca724aaea126af099fa6a48..13f35a7972bf8020c61b893eda2f49973a5a8492 100644 (file)
@@ -90,7 +90,7 @@ public:
     eversion_t need) = 0;
 
   interruptible_future<BackfillInterval> scan_for_backfill(
-    const hobject_t& from,
+    const hobject_t from,
     std::int64_t min,
     std::int64_t max);