Flush and sync the data of the file into storage. @retval true Error happens @retval false Succeeds */
| 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. |
no test coverage detected