MCPcopy Create free account
hub / github.com/Tencent/phxsql / operator >

Function operator >

phxbinlogsvr/core/storage/master_storage.cpp:109–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool operator >(const MasterInfo &info1, const MasterInfo &info2) {
110 return info1.instance_id() > info2.instance_id() && info1.version() > info2.version();
111}
112
113void MasterStorage::GetMaster(MasterInfo *info) {
114 RWLockManager lock(&mutex_, RWLockManager::READ);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected