diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-08-06 19:57:06 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-08-06 19:57:06 +0200 |
commit | a7f39aacd573bfa299a930ee8275ba3066efc33a (patch) | |
tree | 9d440e20d7809dcccff7eea0c7b93d79c1d2edf6 /storage/xtradb/include/dict0dict.h | |
parent | 098a9c602d702950b112a251580057f128634f22 (diff) | |
parent | 415fe3f175c55cca80477572d7e05bdfda4e3c23 (diff) | |
download | mariadb-git-a7f39aacd573bfa299a930ee8275ba3066efc33a.tar.gz |
xtradb-5.6.19-67.0
Diffstat (limited to 'storage/xtradb/include/dict0dict.h')
-rw-r--r-- | storage/xtradb/include/dict0dict.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/storage/xtradb/include/dict0dict.h b/storage/xtradb/include/dict0dict.h index 0a93f0532f5..136f7b52aba 100644 --- a/storage/xtradb/include/dict0dict.h +++ b/storage/xtradb/include/dict0dict.h @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1996, 2013, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1996, 2014, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 2012, Facebook Inc. This program is free software; you can redistribute it and/or modify it under @@ -1438,6 +1438,28 @@ UNIV_INTERN void dict_mutex_exit_for_mysql(void); /*===========================*/ + +/** Create a dict_table_t's stats latch or delay for lazy creation. +This function is only called from either single threaded environment +or from a thread that has not shared the table object with other threads. +@param[in,out] table table whose stats latch to create +@param[in] enabled if false then the latch is disabled +and dict_table_stats_lock()/unlock() become noop on this table. */ + +void +dict_table_stats_latch_create( + dict_table_t* table, + bool enabled); + +/** Destroy a dict_table_t's stats latch. +This function is only called from either single threaded environment +or from a thread that has not shared the table object with other threads. +@param[in,out] table table whose stats latch to destroy */ + +void +dict_table_stats_latch_destroy( + dict_table_t* table); + /**********************************************************************//** Lock the appropriate latch to protect a given table's statistics. table->id is used to pick the corresponding latch from a global array of |