Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
timecheck_rounds_since_clean(0),
timecheck_event(NULL),
- paxos_service(PAXOS_NUM),
admin_hook(NULL),
routed_request_tid(0),
op_tracker(cct, g_conf().get_val<bool>("mon_enable_op_tracker"), 1)
{
op_tracker.on_shutdown();
- paxos_service.clear();
delete config_key_service;
delete paxos;
ceph_assert(session_map.sessions.empty());
#include <errno.h>
#include <cmath>
#include <string>
+#include <array>
#include "include/types.h"
#include "include/health.h"
/**
* Vector holding the Services serviced by this Monitor.
*/
- std::vector<std::unique_ptr<PaxosService>> paxos_service;
+ std::array<std::unique_ptr<PaxosService>, PAXOS_NUM> paxos_service;
class MDSMonitor *mdsmon() {
return (class MDSMonitor *)paxos_service[PAXOS_MDSMAP].get();