summaryrefslogtreecommitdiff
path: root/sql/mysqld.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2020-07-08 17:38:59 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2020-07-14 11:16:24 +0200
commit1a2b494100e5a81c8ac568899d66884b9936cf98 (patch)
tree112d70b6876543706bd87deea4fec006ec400815 /sql/mysqld.h
parent7148b846738412517bf4998128ba66a277721630 (diff)
downloadmariadb-git-1a2b494100e5a81c8ac568899d66884b9936cf98.tar.gz
MDEV-23124 Eliminate the overhead of system call access() on every USE(or connection)
Make check_db_dir_existence() use a cache of existing directories clear the cache whenever any directory is removed. With this, the cost of check_db_dir_existence() will usually be a cost of acquiring/releasing a non-contended readwrite lock in shared mode, much less than going to the kernel and filesystem to check for file existence
Diffstat (limited to 'sql/mysqld.h')
-rw-r--r--sql/mysqld.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/mysqld.h b/sql/mysqld.h
index 6f0db56d309..fda3a7d2ef9 100644
--- a/sql/mysqld.h
+++ b/sql/mysqld.h
@@ -502,6 +502,7 @@ extern PSI_memory_key key_memory_TABLE;
extern PSI_memory_key key_memory_binlog_statement_buffer;
extern PSI_memory_key key_memory_user_conn;
extern PSI_memory_key key_memory_dboptions_hash;
+extern PSI_memory_key key_memory_dbnames_cache;
extern PSI_memory_key key_memory_hash_index_key_buffer;
extern PSI_memory_key key_memory_THD_handler_tables_hash;
extern PSI_memory_key key_memory_JOIN_CACHE;