cap_imports_num_opening--;
if (cap_imports_num_opening == 0) {
- if (rejoin_gather.empty())
+ if (rejoin_gather.empty() && rejoin_ack_gather.count(mds->get_nodeid()))
rejoin_gather_finish();
else if (rejoin_gather.count(mds->get_nodeid()))
process_imported_caps();
dout(10) << "rejoin_open_sessions_finish" << dendl;
mds->server->finish_force_open_sessions(session_map);
rejoin_session_map.swap(session_map);
- if (rejoin_gather.empty())
+ if (rejoin_gather.empty() && rejoin_ack_gather.count(mds->get_nodeid()))
rejoin_gather_finish();
}
MDSGatherBuilder gather(g_ceph_context,
new MDSInternalContextWrapper(mds,
new LambdaContext([this](int r) {
- if (rejoin_gather.empty())
+ if (rejoin_gather.empty() && rejoin_ack_gather.count(mds->get_nodeid()))
rejoin_gather_finish();
})
)