MDEV-16548 - Innodb fails to start on older kernels that don't support F_DUPFD_CLOEXEC

InnoDB duplicates file descriptor returned by create_temp_file() to
workaround further inconsistent use of this descriptor.

Use mysys file descriptors consistently for innobase_mysql_tmpfile(path).
Mostly close it by appropriate mysys wrappers.
This commit is contained in:
Sergey Vojtovich 2019-05-23 15:09:40 +04:00
commit a74b01ea0e
7 changed files with 27 additions and 107 deletions

View file

@ -1524,15 +1524,6 @@ os_file_get_status(
bool check_rw_perm,
bool read_only);
/** Creates a temporary file in the location specified by the parameter
path. If the path is NULL then it will be created on --tmpdir location.
This function is defined in ha_innodb.cc.
@param[in] path location for creating temporary file
@return temporary file descriptor, or < 0 on error */
os_file_t
innobase_mysql_tmpfile(
const char* path);
/** Set the file create umask
@param[in] umask The umask to use for file creation. */
void