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

Method flush_cache_to_file

phx_percona/percona/sql/binlog.cc:7084–7095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7082*/
7083
7084int
7085MYSQL_BIN_LOG::flush_cache_to_file(my_off_t *end_pos_var)
7086{
7087 if (flush_io_cache(&log_file))
7088 {
7089 THD *thd= current_thd;
7090 thd->commit_error= THD::CE_FLUSH_ERROR;
7091 return ER_ERROR_ON_WRITE;
7092 }
7093 *end_pos_var= my_b_tell(&log_file);
7094 return 0;
7095}
7096
7097
7098/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected