diff options
author | monty@donna.mysql.com <> | 2000-11-20 02:57:02 +0200 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-11-20 02:57:02 +0200 |
commit | 61fd6baf4b466e52192f68fec8e09aa9cca7ead4 (patch) | |
tree | d3f52866508b583c2d4549b66887b4b50aa9fe22 /mysys | |
parent | b31d0768794e964852562c0ba307e6eea35f101b (diff) | |
download | mariadb-git-61fd6baf4b466e52192f68fec8e09aa9cca7ead4.tar.gz |
Bug fix for NATURAL JOIN, Split manual sections and more statistic variables
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/mf_tempfile.c | 2 | ||||
-rw-r--r-- | mysys/my_static.c | 2 |
2 files changed, 3 insertions, 1 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); } diff --git a/mysys/my_static.c b/mysys/my_static.c index db942d96db9..f1339877273 100644 --- a/mysys/my_static.c +++ b/mysys/my_static.c @@ -30,7 +30,7 @@ my_string home_dir=0,my_progname=0; char NEAR curr_dir[FN_REFLEN]= {0}, NEAR home_dir_buff[FN_REFLEN]= {0}; -uint my_stream_opened=0,my_file_opened=0; +ulong my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0; int NEAR my_umask=0664, NEAR my_umask_dir=0777; #ifndef THREAD int NEAR my_errno=0; |