summaryrefslogtreecommitdiff
path: root/sql/sql_error.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/sql_error.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/sql_error.h')
0 files changed, 0 insertions, 0 deletions