1053
1053
if ((file= internal::my_create(target_path.file_string().c_str(), 0666, O_WRONLY|O_EXCL, MYF(MY_WME))) < 0)
1055
1055
(void) fchmod(file, 0666); // Because of umask()
1056
if (init_io_cache(cache, file, 0L, internal::WRITE_CACHE, 0L, 1, MYF(MY_WME)))
1056
if (cache->init_io_cache(file, 0L, internal::WRITE_CACHE, 0L, 1, MYF(MY_WME)))
1058
1058
internal::my_close(file, MYF(0));
1059
1059
internal::my_delete(target_path.file_string().c_str(), MYF(0)); // Delete file on error, it was just created