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

Method flush_and_sync

phx_percona/percona/sql/binlog.cc:5360–5370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5358#endif // ifdef HAVE_REPLICATION
5359
5360bool MYSQL_BIN_LOG::flush_and_sync(const bool force)
5361{
5362 mysql_mutex_assert_owner(&LOCK_log);
5363
5364 if (flush_io_cache(&log_file))
5365 return 1;
5366
5367 std::pair<bool, bool> result= sync_binlog_file(force);
5368
5369 return result.first;
5370}
5371
5372void MYSQL_BIN_LOG::start_union_events(THD *thd, query_id_t query_id_param)
5373{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected