}).safe_then([this] {
return transaction_manager->mount();
}).safe_then([this] {
- return transaction_manager->with_transaction_intr(
- Transaction::src_t::MUTATE, [this](auto& t) {
- return onode_manager->mkfs(t
- ).si_then([this, &t] {
- return collection_manager->mkfs(t);
- }).si_then([this, &t](auto coll_root) {
- transaction_manager->write_collection_root(
- t, coll_root);
- return transaction_manager->submit_transaction(t);
+ return repeat_eagain([this] {
+ return transaction_manager->with_transaction_intr(
+ Transaction::src_t::MUTATE, [this](auto& t) {
+ return onode_manager->mkfs(t
+ ).si_then([this, &t] {
+ return collection_manager->mkfs(t);
+ }).si_then([this, &t](auto coll_root) {
+ transaction_manager->write_collection_root(
+ t, coll_root);
+ return transaction_manager->submit_transaction(t);
+ });
});
});
}).safe_then([this] {
).then([this] {
return tm->mount(
).safe_then([this] {
- return seastar::do_with(
- create_mutate_transaction(),
- [this](auto &ref_t) {
- return with_trans_intr(*ref_t, [&](auto &t) {
- return manager->mkfs(t
- ).si_then([this, &t] {
- return submit_transaction_fut2(t);
+ return repeat_eagain([this] {
+ return seastar::do_with(
+ create_mutate_transaction(),
+ [this](auto &ref_t) {
+ return with_trans_intr(*ref_t, [&](auto &t) {
+ return manager->mkfs(t
+ ).si_then([this, &t] {
+ return submit_transaction_fut2(t);
+ });
});
- });
});
+ });
}).safe_then([this] {
return tm->close();
}).handle_error(