mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
crimson/mon: remove timeout support from mon::Client::authenticate()
as the timeout parameter is not used by OSD. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
250fe6bc0f
commit
36fb31867f
@ -466,11 +466,9 @@ seastar::future<> Client::build_initial_map()
|
||||
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()
|
||||
|
@ -71,7 +71,7 @@ public:
|
||||
~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,
|
||||
|
@ -39,7 +39,9 @@ static seastar::future<> test_monc()
|
||||
}).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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user