MCPcopy Create free account
hub / github.com/MariaDB/server / sync_temp_file

Method sync_temp_file

sql/log_cache.h:303–311  ·  view source on GitHub ↗

Flush and sync the data of the file into storage. @retval true Error happens @retval false Succeeds */

Source from the content-addressed store, hash-verified

301 @retval false Succeeds
302 */
303 bool sync_temp_file()
304 {
305 DBUG_ASSERT(cache_log.file != -1);
306
307 if (my_b_flush_io_cache(&cache_log, 1) ||
308 mysql_file_sync(cache_log.file, MYF(0)))
309 return true;
310 return false;
311 }
312
313 /**
314 Copy the name of the cache file to the argument name.

Callers 1

commitMethod · 0.80

Calls 1

my_b_flush_io_cacheFunction · 0.85

Tested by

no test coverage detected