mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 11:45:32 +00:00
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.
This commit is contained in:
@ -223,7 +223,7 @@ FILE *my_fdopen(File Filedes, const char *name, int Flags, myf MyFlags)
|
||||
{
|
||||
if (my_file_info[Filedes].type != UNOPEN)
|
||||
{
|
||||
statistic_decrement(my_file_opened, &THR_LOCK_open); /* File is opened with my_open ! */
|
||||
thread_safe_decrement32(&my_file_opened); /* File is opened with my_open ! */
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user