mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
test/crimson: do not discard returned future<>
to silence following warning: ../src/test/crimson/seastore/test_randomblock_manager.cc:122:7: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result] rbm_manager->add_free_extent(t.allocated_blocks, r.first * DEFAULT_BLOCK_SIZE, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
a4f542f7c0
commit
65df8b1e78
@ -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) {
|
||||
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);
|
||||
len * DEFAULT_BLOCK_SIZE).unsafe_get();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user