diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2020-07-08 17:38:59 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2020-07-14 11:16:24 +0200 |
commit | 1a2b494100e5a81c8ac568899d66884b9936cf98 (patch) | |
tree | 112d70b6876543706bd87deea4fec006ec400815 /sql/sql_error.h | |
parent | 7148b846738412517bf4998128ba66a277721630 (diff) | |
download | mariadb-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/sql_error.h')
0 files changed, 0 insertions, 0 deletions