| 38 | namespace phxbinlog { |
| 39 | |
| 40 | ReplicationImpl::ReplicationImpl(const Option *option, const int &slave_fd) { |
| 41 | ctx_ = new ReplicationCtx(option); |
| 42 | ctx_->SetSlaveFD(slave_fd); |
| 43 | option_ = option; |
| 44 | event_manager_ = EventManager::GetGlobalEventManager(option); |
| 45 | master_manager_ = MasterManager::GetGlobalMasterManager(option); |
| 46 | } |
| 47 | |
| 48 | ReplicationImpl::~ReplicationImpl() { |
| 49 | delete ctx_; |
nothing calls this directly
no test coverage detected