diff options
author | unknown <marko@hundin.mysql.fi> | 2005-02-15 11:16:17 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-02-15 11:16:17 +0200 |
commit | 658bac84bf8fcc8d57c94e65e2097164af88eb50 (patch) | |
tree | aa73714dc06573d82355ad6c9283d0700d7bb840 /sql/ha_innodb.cc | |
parent | 4c21a10f27c6a15690b5640352d23f1c111ac729 (diff) | |
download | mariadb-git-658bac84bf8fcc8d57c94e65e2097164af88eb50.tar.gz |
InnoDB: Create temporary files in the MySQL tmpdir instead of $TMPDIR.
(Bug #5822)
sql/ha_innodb.cc:
innobase_mysql_tmpfile(): pass mysql_tmpdir to create_temp_file(),
so that the MySQL startup option tmpdir will be honored instead of
the environment variable TMPDIR. (Bug #5822)
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r-- | sql/ha_innodb.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index 1a870ce3abf..81a803e36b9 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -424,7 +424,7 @@ innobase_mysql_tmpfile(void) { char filename[FN_REFLEN]; int fd2 = -1; - File fd = create_temp_file(filename, NullS, "ib", + File fd = create_temp_file(filename, mysql_tmpdir, "ib", #ifdef __WIN__ O_BINARY | O_TRUNC | O_SEQUENTIAL | O_TEMPORARY | O_SHORT_LIVED | |