summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.cc
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-02-15 11:16:17 +0200
committerunknown <marko@hundin.mysql.fi>2005-02-15 11:16:17 +0200
commit658bac84bf8fcc8d57c94e65e2097164af88eb50 (patch)
treeaa73714dc06573d82355ad6c9283d0700d7bb840 /sql/ha_innodb.cc
parent4c21a10f27c6a15690b5640352d23f1c111ac729 (diff)
downloadmariadb-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.cc2
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 |