summaryrefslogtreecommitdiff
path: root/mysys/mf_tempfile.c
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-11-20 02:57:02 +0200
committermonty@donna.mysql.com <>2000-11-20 02:57:02 +0200
commit61fd6baf4b466e52192f68fec8e09aa9cca7ead4 (patch)
treed3f52866508b583c2d4549b66887b4b50aa9fe22 /mysys/mf_tempfile.c
parentb31d0768794e964852562c0ba307e6eea35f101b (diff)
downloadmariadb-git-61fd6baf4b466e52192f68fec8e09aa9cca7ead4.tar.gz
Bug fix for NATURAL JOIN, Split manual sections and more statistic variables
Diffstat (limited to 'mysys/mf_tempfile.c')
-rw-r--r--mysys/mf_tempfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/mf_tempfile.c b/mysys/mf_tempfile.c
index c3fccda09bf..c9b60c87ef3 100644
--- a/mysys/mf_tempfile.c
+++ b/mysys/mf_tempfile.c
@@ -170,5 +170,7 @@ File create_temp_file(char *to, const char *dir, const char *prefix,
}
}
#endif
+ if (file >= 0)
+ thread_safe_increment(my_tmp_file_created,&THR_LOCK_open);
DBUG_RETURN(file);
}