diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-05-04 13:11:25 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-05-07 18:40:36 +0200 |
commit | 15c79c41e435758392a1474fccf45978fec1e45c (patch) | |
tree | 434cf1c13283cb5abd236b8b8068127cec06b6ba /mysys/my_static.c | |
parent | 3d7e06d4ab1c108d61ac7dd4d09287580d77add5 (diff) | |
download | mariadb-git-15c79c41e435758392a1474fccf45978fec1e45c.tar.gz |
MDEV-17845 Extreme high open file limit used
SHOW STATUS LIKE 'Open_files' was showing 18446744073709551615
my_file_opened used statistic_increment/statistic_decrement,
so one-off errors were normal and expected. But they confused
monitoring tools, so let's move my_file_opened to use atomics.
Diffstat (limited to 'mysys/my_static.c')
-rw-r--r-- | mysys/my_static.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/my_static.c b/mysys/my_static.c index f2a9fbb7335..a8f520e656a 100644 --- a/mysys/my_static.c +++ b/mysys/my_static.c @@ -31,7 +31,7 @@ char *mysql_data_home= (char*) "."; const char *my_progname= NULL, *my_progname_short= NULL; char curr_dir[FN_REFLEN]= {0}, home_dir_buff[FN_REFLEN]= {0}; -ulong my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0; +ulong my_stream_opened=0,my_tmp_file_created=0; ulong my_file_total_opened= 0; int my_umask=0664, my_umask_dir=0777; @@ -39,6 +39,7 @@ myf my_global_flags= 0; my_bool my_assert_on_error= 0; struct st_my_file_info my_file_info_default[MY_NFILE]; uint my_file_limit= MY_NFILE; +int32 my_file_opened=0; struct st_my_file_info *my_file_info= my_file_info_default; /* From mf_brkhant */ |