Skip to content

Commit 6dfc166

Browse files
committed
crimson/osd/recovery_backend: scan_for_backfill pass start by value
See: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-reference-parameters Signed-off-by: Matan Breizman <[email protected]>
1 parent 8ca4fc0 commit 6dfc166

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/crimson/osd/recovery_backend.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ RecoveryBackend::handle_backfill_remove(
222222

223223
RecoveryBackend::interruptible_future<BackfillInterval>
224224
RecoveryBackend::scan_for_backfill(
225-
const hobject_t& start,
225+
const hobject_t start,
226226
[[maybe_unused]] const std::int64_t min,
227227
const std::int64_t max)
228228
{

src/crimson/osd/recovery_backend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class RecoveryBackend {
9090
eversion_t need) = 0;
9191

9292
interruptible_future<BackfillInterval> scan_for_backfill(
93-
const hobject_t& from,
93+
const hobject_t from,
9494
std::int64_t min,
9595
std::int64_t max);
9696

0 commit comments

Comments
 (0)