diff options
Diffstat (limited to 'mysys/mf_tempfile.c')
-rw-r--r-- | mysys/mf_tempfile.c | 2 |
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); } |