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

Method UpdateEventUUIDInfoByUUID

phxbinlogsvr/core/storage/event_uuid_handler.cpp:159–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159int EventUUIDHandler::UpdateEventUUIDInfoByUUID(const string &uuid, const EventDataInfo &data_info) {
160 //LogVerbose("%s update gtid uuid %s-%s instance id %llu", __func__, uuid.c_str(), data_info.gtid().c_str(),
161 // data_info.instance_id());
162 map_uuid_[uuid] = data_info;
163 newest_info_ = data_info;
164 return OK;
165}
166
167int EventUUIDHandler::GetLastestUUIDPos(EventDataInfo *info) {
168 for (const auto &it : map_uuid_) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected