logger().debug("{}", __func__);
return tp->submit([this] {
return store->mount();
- }).then([] (int) {
+ }).then([] (int r) {
+ assert(r == 0);
return seastar::now();
});
}
return tp->submit([this] {
return store->umount();
});
- }).then([] (int) {
+ }).then([] (int r) {
+ assert(r == 0);
return seastar::now();
});
}
osd_fsid = new_osd_fsid;
return tp->submit([this] {
return store->mkfs();
- }).then([] (int) {
+ }).then([] (int r) {
+ assert(r == 0);
return seastar::now();
});
}
return store->collection_list(c->collection, start, end,
store->get_ideal_list_max(),
&objects, &next);
- }).then([&objects, &next] (int) {
+ }).then([&objects, &next] (int r) {
+ assert(r == 0);
return seastar::make_ready_future<std::tuple<std::vector<ghobject_t>, ghobject_t>>(
std::make_tuple(std::move(objects), std::move(next)));
});
return seastar::do_with(std::vector<coll_t>{}, [=] (auto &ls) {
return tp->submit([this, &ls] {
return store->list_collections(ls);
- }).then([&ls] (int) {
+ }).then([&ls] (int r) {
+ assert(r == 0);
return seastar::make_ready_future<std::vector<coll_t>>(std::move(ls));
});
});
auto c = static_cast<AlienCollection*>(ch.get());
return store->omap_get_values(c->collection, oid, keys,
reinterpret_cast<map<string, bufferlist>*>(&values));
- }).then([&values] (int) {
+ }).then([&values] (int r) {
+ assert(r == 0);
return seastar::make_ready_future<omap_values_t>(std::move(values));
});
});
auto c = static_cast<AlienCollection*>(ch.get());
return store->queue_transaction(c->collection, std::move(txn));
});
- }).then([this, &done] (int) {
+ }).then([this, &done] (int r) {
+ assert(r == 0);
tp_mutex.unlock();
return done.get_future();
});
logger().debug("{}", __func__);
return tp->submit([=] {
return store->write_meta(key, value);
- }).then([] (int) {
+ }).then([] (int r) {
+ assert(r == 0);
return seastar::make_ready_future<>();
});
}
return seastar::do_with(store_statfs_t{}, [this] (store_statfs_t &st) {
return tp->submit([this, &st] {
return store->statfs(&st, nullptr);
- }).then([&st] (int) {
+ }).then([&st] (int r) {
+ assert(r == 0);
return seastar::make_ready_future<store_statfs_t>(std::move(st));
});
});