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

Method SlaveManager

phxbinlogsvr/core/repl/replication.cpp:81–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void *ReplicationManager::SlaveManager(void *arg) {
82 ReplicationManager *manager = (ReplicationManager*) arg;
83 ReplicationImpl * impl = manager->GetImpl();
84 if(!impl){
85 LogVerbose("%s impl has been closed",__func__);
86 return NULL;
87 }
88
89 int ret = impl->Process();
90 if (ret) {
91 ColorLogError("deal with salve fail");
92 }
93 ColorLogError("deal with salve done, impl %p", &impl);
94
95 return NULL;
96}
97
98}

Callers

nothing calls this directly

Calls 4

LogVerboseFunction · 0.85
ColorLogErrorFunction · 0.85
GetImplMethod · 0.80
ProcessMethod · 0.45

Tested by

no test coverage detected