} else {
return shard_states->close(
).then([this] {
+ std::ignore = this; // as we are 'assert'ing, not ceph_assert'ing
assert(shard_states->assert_closed_and_exit());
});
}
ctx.t, unaligned_begin.get_aligned_laddr(ctx.tm.get_block_size())
).si_then([ctx, data_base, size, this,
unaligned_begin, &object_data](auto mapping) {
+ std::ignore = unaligned_begin;
assert(mapping.get_key() <= unaligned_begin &&
mapping.get_key() + mapping.get_length() > unaligned_begin);
auto data_len = object_data.get_reserved_data_len();
).handle_error_interruptible(
move_region_iertr::pass_further(),
crimson::ct_error::assert_all("invalid error"));
- auto off = 0;
+ [[maybe_unused]] auto off = 0;
auto bl = maybe_indirect_extent.get_range(
src.get_intermediate_offset(),
src.get_length());
return handle_sub_write(
m->op.from, std::move(m->op), pg
).si_then([&pg] {
+ std::ignore = pg;
assert(!pg.pgb_is_primary());
return write_iertr::now();
}, crimson::ct_error::assert_all("unexpected error"));
auto &dirty_seq,
auto &alloc_seq,
auto last_modified) {
- bool found = false;
+ [[maybe_unused]] bool found = false;
for (auto &i : entries) {
paddr_t base = offsets.write_result.start_seq.offset;
rbm_abs_addr addr = convert_paddr_to_abs_addr(base);
}
});
}).get();
- auto old_written_to = get_written_to();
+ [[maybe_unused]] auto old_written_to = get_written_to();
cbj->close().unsafe_get();
cbj->replay(
[](const auto &offsets,