Merge pull request #39157 from xxhdx1985126/wip-crimson-bug-fix

crimson/osd: capture "intervals_included" by value in ReplicatedRecoveryBackend::submit_push_data

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-01-29 16:24:19 +08:00 committed by GitHub
commit 5a7f2827ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -980,7 +980,7 @@ seastar::future<> ReplicatedRecoveryBackend::submit_push_data(
}
return seastar::make_ready_future<>();
}().then([this, data_zeros=std::move(data_zeros),
&recovery_info, &intervals_included, t, target_oid,
&recovery_info, intervals_included, t, target_oid,
&omap_entries, &attrs, data_included, complete, first]() mutable {
uint32_t fadvise_flags = CEPH_OSD_OP_FLAG_FADVISE_SEQUENTIAL;
// Punch zeros for data, if fiemap indicates nothing but it is marked dirty