mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
client: renew/submit subs on startup
This fixes a delay in getting the initial MDSMap during startup (we wait for the MonClient tick()). Reported-by: Noah Watkins <jayhawk@cs.ucsc.edu> Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
a23351efda
commit
1b27a7cd4d
@ -294,6 +294,7 @@ int Client::init()
|
||||
monclient->set_want_keys(CEPH_ENTITY_TYPE_MDS | CEPH_ENTITY_TYPE_OSD);
|
||||
monclient->sub_want("mdsmap", 0, 0);
|
||||
monclient->sub_want("osdmap", 0, CEPH_SUBSCRIBE_ONETIME);
|
||||
monclient->renew_subs();
|
||||
|
||||
// logger
|
||||
PerfCountersBuilder plb(cct, "client", l_c_first, l_c_last);
|
||||
|
Loading…
Reference in New Issue
Block a user