return iter.prev(
c
).si_then([laddr, &iter](auto p) {
+ boost::ignore_unused(laddr); // avoid clang warning;
assert(p.leaf.node->get_node_meta().begin <= laddr);
assert(p.get_key() < laddr);
// Note, this is specifically allowed to violate the iterator
start,
config.with_reduced_max(result.size())
).si_then([&, config](auto &&child_ret) mutable {
+ boost::ignore_unused(config); // avoid clang warning;
auto &[child_complete, child_result] = child_ret;
if (result.size() && child_result.size()) {
assert(child_result.begin()->first > result.rbegin()->first);
})
);
}).si_then([this, c] {
+ boost::ignore_unused(c); // avoid clang warning;
assert(!c.t.is_conflicted());
return *mut;
});
return tree->insert(
t, p_kv->key, {p_kv->value.get_payload_size()}
).si_then([&t, this, p_kv](auto ret) {
+ boost::ignore_unused(this); // avoid clang warning;
auto success = ret.second;
auto cursor = std::move(ret.first);
initialize_cursor_from_item(t, p_kv->key, p_kv->value, cursor, success);
p_kv->value);
return tree->erase(t, p_kv->key
).si_then([&t, this, p_kv] (auto size) {
+ boost::ignore_unused(t); // avoid clang warning;
+ boost::ignore_unused(this);
+ boost::ignore_unused(p_kv);
ceph_assert(size == 1);
#ifndef NDEBUG
return tree->contains(t, p_kv->key
oss << root << "/block." << dtype << "." << std::to_string(id);
auto sm = std::make_unique<
segment_manager::block::BlockSegmentManager>(oss.str());
- return sm->mount().safe_then([this, sm=std::move(sm), magic]() mutable {
+ return sm->mount().safe_then(
+ [this, sm=std::move(sm), magic]() mutable {
+ boost::ignore_unused(magic); // avoid clang warning;
assert(sm->get_magic() == magic);
transaction_manager->add_segment_manager(sm.get());
secondaries.emplace_back(std::move(sm));
#include <optional>
#include <iostream>
#include <vector>
+#include <boost/core/ignore_unused.hpp>
#include "include/byteorder.h"
#include "include/denc.h"
return init(
).then([this] {
assert(fs);
- }).then([this] {
return fs->start();
}).then([this] {
uuid_d uuid;
logger().debug("dec_ref complete");
return tm->alloc_extent<TestBlock>(t, offset, ptr.length());
}).si_then([this, offset, &t, &ptr](auto ext) {
+ boost::ignore_unused(offset); // avoid clang warning;
assert(ext->get_laddr() == (size_t)offset);
assert(ext->get_bptr().length() == ptr.length());
ext->get_bptr().swap(ptr);