diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-05-17 22:53:57 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2018-05-21 16:34:10 +0000 |
commit | 3a7d7e180a871c5b2b2d98812d9d7f800cf33952 (patch) | |
tree | d4bd1765e16d3bf92d360b8c032b86f8a0b3a38f /include/my_global.h | |
parent | 2534ae20fd244eed569830bb7159518e42f24baa (diff) | |
download | mariadb-git-3a7d7e180a871c5b2b2d98812d9d7f800cf33952.tar.gz |
cleanup: create_temp_file()
simplify. move common code inside, specify common flags inside,
rewrite dead code (`if (mode & O_TEMPORARY)` on Linux, where
`O_TEMPORARY` is always 0) to actually do something.
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/my_global.h b/include/my_global.h index 9982f6339e4..0769feca94a 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -600,8 +600,8 @@ typedef SOCKET_SIZE_TYPE size_socket; #endif #endif /* O_SHARE */ -#ifndef O_TEMPORARY -#define O_TEMPORARY 0 +#ifndef O_SEQUENTIAL +#define O_SEQUENTIAL 0 #endif #ifndef O_SHORT_LIVED #define O_SHORT_LIVED 0 |