| 35 | namespace phxbinlog { |
| 36 | |
| 37 | DataManager::DataManager(const Option *option) { |
| 38 | event_agent_ = PaxosAgentManager::GetGlobalPaxosAgentManager(option)->GetEventAgent(); |
| 39 | event_manager_ = EventManager::GetGlobalEventManager(option); |
| 40 | replica_manager_ = new ReplicationManager(option); |
| 41 | option_ = option; |
| 42 | LogVerbose("%s init data manager done", __func__); |
| 43 | } |
| 44 | |
| 45 | DataManager::~DataManager() { |
| 46 | delete replica_manager_, replica_manager_ = NULL; |
nothing calls this directly
no test coverage detected