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

Method binlog_cache_data

phx_percona/percona/sql/binlog.cc:317–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315public:
316
317 binlog_cache_data(bool trx_cache_arg,
318 my_off_t max_binlog_cache_size_arg,
319 ulong *ptr_binlog_cache_use_arg,
320 ulong *ptr_binlog_cache_disk_use_arg)
321 : m_pending(0), saved_max_binlog_cache_size(max_binlog_cache_size_arg),
322 ptr_binlog_cache_use(ptr_binlog_cache_use_arg),
323 ptr_binlog_cache_disk_use(ptr_binlog_cache_disk_use_arg)
324 {
325 reset();
326 flags.transactional= trx_cache_arg;
327 cache_log.end_of_file= saved_max_binlog_cache_size;
328 }
329
330 int finalize(THD *thd, Log_event *end_event);
331 int flush(THD *thd, my_off_t *bytes, bool *wrote_xid);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected