Merge pull request #42808 from tchaikov/wip-crimson-test-cleanup

test/crimson: do not discard returned future<>

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
Kefu Chai 2021-08-17 16:03:06 +08:00 committed by GitHub
commit be90b9e90b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,12 +115,12 @@ struct rbm_test_t : public seastar_test_suite_t,
}
}
auto free_extent(rbm_transaction &t, interval_set<blk_id_t> range) {
for (auto r : range) {
logger().debug("free_extent: start {} len {}", r.first * DEFAULT_BLOCK_SIZE,
r.second * DEFAULT_BLOCK_SIZE);
rbm_manager->add_free_extent(t.allocated_blocks, r.first * DEFAULT_BLOCK_SIZE,
r.second * DEFAULT_BLOCK_SIZE);
void free_extent(rbm_transaction &t, interval_set<blk_id_t> range) {
for (auto [off, len] : range) {
logger().debug("free_extent: start {} len {}", off * DEFAULT_BLOCK_SIZE,
len * DEFAULT_BLOCK_SIZE);
rbm_manager->add_free_extent(t.allocated_blocks, off * DEFAULT_BLOCK_SIZE,
len * DEFAULT_BLOCK_SIZE).unsafe_get();
}
}