MCPcopy Create free account
hub / github.com/Tencent/phxsql / ReplicationImpl

Method ReplicationImpl

phxbinlogsvr/core/repl/replication_impl.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace phxbinlog {
39
40ReplicationImpl::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
48ReplicationImpl::~ReplicationImpl() {
49 delete ctx_;

Callers

nothing calls this directly

Calls 1

SetSlaveFDMethod · 0.80

Tested by

no test coverage detected