register_command(std::make_unique<ConfigGetHook>()),
register_command(std::make_unique<ConfigSetHook>()),
register_command(std::make_unique<ConfigShowHook>()),
- register_command(std::make_unique<InjectArgsHook>()));
+ register_command(std::make_unique<InjectArgsHook>())
+ ).then_unpack([] {
+ return seastar::now();
+ });
}
} // namespace crimson::admin
if (active_con) {
return seastar::when_all_succeed(active_con->get_conn()->keepalive(),
active_con->renew_tickets(),
- active_con->renew_rotating_keyring());
+ active_con->renew_rotating_keyring()).then_unpack([] {});
} else {
return seastar::now();
}
logger().info("handle_monmap: renewing tickets");
return seastar::when_all_succeed(
active_con->renew_tickets(),
- active_con->renew_rotating_keyring()).then([](){
+ active_con->renew_rotating_keyring()).then_unpack([](){
logger().info("handle_mon_map: renewed tickets");
});
} else {
return seastar::now();
}),
std::move(reset_dispatched)
- ).finally(std::move(cleanup));
+ ).then_unpack([] {
+ return seastar::now();
+ }).finally(std::move(cleanup));
}
seastar::future<> Protocol::send(MessageRef msg)
return seastar::when_all_succeed(
in.close(),
close_and_handle_errors(out)
- ).handle_exception([] (auto eptr) {
+ ).then_unpack([] {
+ return seastar::now();
+ }).handle_exception([] (auto eptr) {
logger().error("Socket::close(): unexpected exception {}", eptr);
ceph_abort();
});
start_messenger(*back_msgr,
back_addrs,
chained_dispatchers))
- .then([this] {
+ .then_unpack([this] {
timer.arm_periodic(
std::chrono::seconds(local_conf()->osd_heartbeat_interval));
});
return gate.close().then([this] {
return seastar::when_all_succeed(front_msgr->shutdown(),
back_msgr->shutdown());
+ }).then_unpack([] {
+ return seastar::now();
});
}
return when_all_succeed(
store->write_meta("ceph_fsid", cluster_fsid.to_string()),
store->write_meta("whoami", std::to_string(whoami)));
- }).then([cluster_fsid, this] {
+ }).then_unpack([cluster_fsid, this] {
fmt::print("created object store {} for osd.{} fsid {}\n",
local_conf().get_val<std::string>("osd_data"),
whoami, cluster_fsid);
.then([this, chained_dispatchers]() mutable {
return public_msgr->start(chained_dispatchers);
}));
- }).then([this] {
+ }).then_unpack([this] {
return seastar::when_all_succeed(monc->start(),
mgrc->start());
- }).then([this] {
+ }).then_unpack([this] {
return _add_me_to_crush();
}).then([this] {
monc->sub_want("osd_pg_creates", last_pg_create_epoch, 0);
asok->register_command(make_asok_hook<OsdStatusHook>(*this)),
asok->register_command(make_asok_hook<SendBeaconHook>(*this)),
asok->register_command(make_asok_hook<FlushPgStatsHook>(*this)));
+ }).then_unpack([] {
+ return seastar::now();
});
}
return when_all_succeed(
public_msgr->shutdown(),
cluster_msgr->shutdown());
+ }).then_unpack([] {
+ return seastar::now();
}).handle_exception([](auto ep) {
logger().error("error while stopping osd: {}", ep);
});
osd.shard_services.dispatch_context(
pg->get_collection_ref(),
std::move(rctx)));
- }).then([this] {
+ }).then_unpack([this] {
return osd.shard_services.send_pg_temp();
});
}).then([this, ref=std::move(ref)] {
return seastar::when_all_succeed(
dispatch_context_messages(
BufferedRecoveryMessages{ceph_release_t::octopus, ctx}),
- col ? dispatch_context_transaction(col, ctx) : seastar::now());
+ col ? dispatch_context_transaction(col, ctx) : seastar::now()
+ ).then_unpack([] {
+ return seastar::now();
+ });
}
void ShardServices::queue_want_pg_temp(pg_t pgid,
return seastar::when_all_succeed(
server->init(server_conf.v1_crc_enabled, server_conf.addr),
client->init(client_conf.v1_crc_enabled)
- ).then([client, addr = client_conf.server_addr] {
+ ).then_unpack([client, addr = client_conf.server_addr] {
return client->connect_wait_verify(addr);
}).then([client, ramptime = client_conf.ramptime,
msgtime = client_conf.msgtime] {