Skip to content

Commit dd10b32

Browse files
committed
crimson/osd/pg: fix wrong lambda capture of transactions in
`PG::submit_error_log()` Fixes: https://tracker.ceph.com/issues/67450 Signed-off-by: Xuehan Xu <[email protected]>
1 parent 1e2b597 commit dd10b32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/crimson/osd/pg.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,10 +1121,10 @@ seastar::future<std::optional<eversion_t>> PG::submit_error_log(
11211121
log_entries, t, peering_state.get_pg_trim_to(),
11221122
peering_state.get_min_last_complete_ondisk());
11231123

1124-
return seastar::do_with(log_entries, t, set<pg_shard_t>{},
1125-
[this, rep_tid](auto& log_entries, auto& t,auto& waiting_on) mutable {
1124+
return seastar::do_with(log_entries, set<pg_shard_t>{},
1125+
[this, t=std::move(t), rep_tid](auto& log_entries, auto& waiting_on) mutable {
11261126
return seastar::do_for_each(get_acting_recovery_backfill(),
1127-
[this, log_entries, t=std::move(t), waiting_on, rep_tid]
1127+
[this, log_entries, waiting_on, rep_tid]
11281128
(auto& i) mutable {
11291129
pg_shard_t peer(i);
11301130
if (peer == pg_whoami) {

0 commit comments

Comments
 (0)