From 1b27a7cd4d9192b598a9a482174709217790b836 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 30 Aug 2012 14:03:11 -0700 Subject: [PATCH] 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 Signed-off-by: Sage Weil --- src/client/Client.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/Client.cc b/src/client/Client.cc index 3333966b3e687..003e3f813a9d6 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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); -- 2.39.5