auto c = static_cast<AlienCollection*>(ch.get());
return store->queue_transaction(c->collection, std::move(txn));
});
- }).then([this, &done] (int r) {
+ }).then([&done] (int r) {
assert(r == 0);
return done.get_future();
});
logger().debug("FlatCollectionManager: {}", __func__);
return tm.alloc_extent<CollectionNode>(
t, L_ADDR_MIN, MIN_FLAT_BLOCK_SIZE
- ).safe_then([this](auto&& root_extent) {
+ ).safe_then([](auto&& root_extent) {
coll_root_t coll_root = coll_root_t(
root_extent->get_laddr(),
MIN_FLAT_BLOCK_SIZE
__builtin_unreachable();
});
});
-
}
+
FlatCollectionManager::list_ret
FlatCollectionManager::list(const coll_root_t &coll_root, Transaction &t)
{
logger().debug("FlatCollectionManager: {}", __func__);
return get_coll_root(coll_root, t)
- .safe_then([this, &t] (auto extent) {
+ .safe_then([] (auto extent) {
return extent->list();
});
}
return omap_load_extent(
oc, laddr,
get_meta().depth - 1
- ).safe_then([&, max_result_size, oc, this] (auto &&extent) {
+ ).safe_then([&, max_result_size, oc] (auto &&extent) {
return extent->list(
oc,
start,
max_result_size - result.size()
- ).safe_then([&, max_result_size, this](auto &&child_ret) mutable {
+ ).safe_then([&, max_result_size](auto &&child_ret) mutable {
auto &[child_complete, child_result] = child_ret;
if (result.size() && child_result.size()) {
assert(child_result.begin()->first > result.rbegin()->first);