Skip to content

Commit 7b94ee1

Browse files
authored
Merge pull request ceph#59102 from xxhdx1985126/wip-67450
crimson/osd/pg: fix wrong lambda capture of transactions in `PG::submit_error_log()` Reviewed-by: Yingxin Cheng <[email protected]> Reviewed-by: Matan Breizman <[email protected]>
2 parents c9bd62a + dd10b32 commit 7b94ee1

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
@@ -1166,10 +1166,10 @@ seastar::future<std::optional<eversion_t>> PG::submit_error_log(
11661166
log_entries, t, peering_state.get_pg_trim_to(),
11671167
peering_state.get_min_last_complete_ondisk());
11681168

1169-
return seastar::do_with(log_entries, t, set<pg_shard_t>{},
1170-
[this, rep_tid](auto& log_entries, auto& t,auto& waiting_on) mutable {
1169+
return seastar::do_with(log_entries, set<pg_shard_t>{},
1170+
[this, t=std::move(t), rep_tid](auto& log_entries, auto& waiting_on) mutable {
11711171
return seastar::do_for_each(get_acting_recovery_backfill(),
1172-
[this, log_entries, t=std::move(t), waiting_on, rep_tid]
1172+
[this, log_entries, waiting_on, rep_tid]
11731173
(auto& i) mutable {
11741174
pg_shard_t peer(i);
11751175
if (peer == pg_whoami) {

0 commit comments

Comments
 (0)