We should not respond to checks for map versions when we are in the
probing or electing states or else clients will get incorrect results when
they ask what the latest map version is.
Fixes: #7997
Signed-off-by: Sage Weil <sage@inktank.com>
return;
}
+ if (!is_leader() && !is_peon()) {
+ dout(10) << " waiting for quorum" << dendl;
+ waitfor_quorum.push_back(new C_RetryMessage(this, m));
+ return;
+ }
+
MMonGetVersionReply *reply = new MMonGetVersionReply();
reply->handle = m->handle;
if (m->what == "mdsmap") {