mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
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:
parent
5f5a0b3bb6
commit
a74b01ea0e
7 changed files with 27 additions and 107 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue