summaryrefslogtreecommitdiff
path: root/storage/tokudb/ha_tokudb.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-09-22 15:21:20 +0200
committerSergei Golubchik <serg@mariadb.org>2018-09-22 20:18:17 +0200
commit1144acbcbdf9b7bdf18c31f88cbe859d99658b53 (patch)
tree0c431e8bcf2f08ebffc14ef0180f1d660def565b /storage/tokudb/ha_tokudb.h
parent3a9276bad31810a87133dd003bbe345602627ecc (diff)
downloadmariadb-git-1144acbcbdf9b7bdf18c31f88cbe859d99658b53.tar.gz
tokudb: create and destroy TOKUDB_SHARE::_open_tables_mutex dynamically
to guarantee that it's destroyed when plugin deinit is called, not after
Diffstat (limited to 'storage/tokudb/ha_tokudb.h')
-rw-r--r--storage/tokudb/ha_tokudb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/tokudb/ha_tokudb.h b/storage/tokudb/ha_tokudb.h
index 6f592617b76..e322c3de18e 100644
--- a/storage/tokudb/ha_tokudb.h
+++ b/storage/tokudb/ha_tokudb.h
@@ -274,7 +274,7 @@ public:
private:
static std::unordered_map<std::string, TOKUDB_SHARE*> _open_tables;
- static tokudb::thread::mutex_t _open_tables_mutex;
+ static tokudb::thread::mutex_t* _open_tables_mutex;
//*********************************
// Spans open-close-open