summaryrefslogtreecommitdiff
path: root/mysys/my_open.c
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-05-19 10:07:21 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2018-05-21 16:34:11 +0000
commita1d57ca1abe1b5a681e58c199afdbcf47db5f5bb (patch)
treec3c984de419ac82e4fe277d3a97027d9900327c6 /mysys/my_open.c
parent5c81cb880a054f34803e2821489533274ebf6c4e (diff)
downloadmariadb-git-a1d57ca1abe1b5a681e58c199afdbcf47db5f5bb.tar.gz
bugfix: EE_OPEN_WARNING could be statistically wrong
don't rely on imprecise my_file_opened | my_stream_opened, scan the array for open handles instead. also, remove my_print_open_files() and embed it in my_end() to have one array scan instead of two.
Diffstat (limited to 'mysys/my_open.c')
-rw-r--r--mysys/my_open.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/mysys/my_open.c b/mysys/my_open.c
index 6fc8f6d07fc..54e53089da9 100644
--- a/mysys/my_open.c
+++ b/mysys/my_open.c
@@ -161,26 +161,3 @@ File my_register_filename(File fd, const char *FileName, enum file_type
}
DBUG_RETURN(-1);
}
-
-
-
-
-#ifdef EXTRA_DEBUG
-
-void my_print_open_files(void)
-{
- if (my_file_opened | my_stream_opened)
- {
- uint i;
- for (i= 0 ; i < my_file_limit ; i++)
- {
- if (my_file_info[i].type != UNOPEN)
- {
- fprintf(stderr, EE(EE_FILE_NOT_CLOSED), my_file_info[i].name, i);
- fputc('\n', stderr);
- }
- }
- }
-}
-
-#endif