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

Method EncodeBinLogBuffer

phxbinlogsvr/framework/rpccomm/phxbinlog_client.cpp:306–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306bool PhxBinlogClient::EncodeBinLogBuffer(const string &old_gtid, const string &new_gtid, const string &eventbuffer,
307 string *encode_buffer) {
308 phxbinlogsvr::BinLogBuffer binlogbuffer;
309 binlogbuffer.set_oldgtid(old_gtid);
310 binlogbuffer.set_newgtid(new_gtid);
311 binlogbuffer.set_eventbuffer(eventbuffer);
312
313 return binlogbuffer.SerializeToString(encode_buffer);
314}
315
316bool PhxBinlogClient::EncodeExportIPInfo(const string &ip, const uint32_t &port, string *encode_buffer) {
317 phxbinlogsvr::ExportIPInfo export_ipinfo;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected