as the timeout parameter is not used by OSD.
Signed-off-by: Kefu Chai <kchai@redhat.com>
return monmap.build_initial(ceph::common::local_conf());
}
-seastar::future<> Client::authenticate(std::chrono::seconds seconds)
+seastar::future<> Client::authenticate()
{
- return seastar::with_timeout(
- seastar::lowres_clock::now() + seconds,
- reopen_session(-1));
+ return reopen_session(-1);
}
seastar::future<> Client::stop()
~Client();
seastar::future<> load_keyring();
seastar::future<> build_initial_map();
- seastar::future<> authenticate(std::chrono::seconds seconds);
+ seastar::future<> authenticate();
seastar::future<> stop();
get_version_t get_version(const std::string& map);
command_result_t run_command(const std::vector<std::string>& cmd,
}).then([&msgr, &monc] {
return msgr.start(&monc);
}).then([&monc] {
- return monc.authenticate(std::chrono::seconds{10});
+ return seastar::with_timeout(
+ seastar::lowres_clock::now() + std::chrono::seconds{10},
+ monc.authenticate());
}).finally([&monc] {
return monc.stop();
});