diff options
Diffstat (limited to 'storage/maria/ma_static.c')
-rw-r--r-- | storage/maria/ma_static.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/storage/maria/ma_static.c b/storage/maria/ma_static.c index 917385f9568..8c572b45547 100644 --- a/storage/maria/ma_static.c +++ b/storage/maria/ma_static.c @@ -107,3 +107,25 @@ static int always_valid(const char *filename __attribute__((unused))) } int (*maria_test_invalid_symlink)(const char *filename)= always_valid; + +#ifdef HAVE_PSI_INTERFACE +PSI_mutex_key ma_key_mutex_PAGECACHE_cache_lock; + +static PSI_mutex_info all_mutexes[]= +{ + { &ma_key_mutex_PAGECACHE_cache_lock, "PAGECACHE::cache_lock", 0} +}; + +void init_aria_psi_keys() +{ + const char* category= "aria"; + int count; + + if (PSI_server == NULL) + return; + + count= array_elements(all_mutexes); + PSI_server->register_mutex(category, all_mutexes, count); +} +#endif /* HAVE_PSI_INTERFACE */ + |