diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-05-27 00:18:20 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-06-02 18:53:37 +0200 |
commit | d9340d6c8e1b227044fc90bc40c5da1d1f6b0dcc (patch) | |
tree | 30659a043a61b91001148bcefe9284a5a9468af7 /sql/encryption.cc | |
parent | 318c826e932af69a864726efd24819d1cfa8dc8a (diff) | |
download | mariadb-git-d9340d6c8e1b227044fc90bc40c5da1d1f6b0dcc.tar.gz |
MDEV-8126 encryption for temp files
IO_CACHE tempfiles encryption
Diffstat (limited to 'sql/encryption.cc')
-rw-r--r-- | sql/encryption.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/encryption.cc b/sql/encryption.cc index b108eb6a25c..520eb8b898f 100644 --- a/sql/encryption.cc +++ b/sql/encryption.cc @@ -19,6 +19,8 @@ #include "sql_plugin.h" #include <my_crypt.h> +void init_io_cache_encryption(); + /* there can be only one encryption plugin enabled */ static plugin_ref encryption_manager= 0; struct encryption_service_st encryption_handler; @@ -79,6 +81,8 @@ int initialize_encryption_plugin(st_plugin_int *plugin) encryption_handler.encryption_key_get_latest_version_func= handle->get_latest_key_version; // must be the last + init_io_cache_encryption(); + return 0; } @@ -100,6 +104,7 @@ int finalize_encryption_plugin(st_plugin_int *plugin) if (encryption_manager) plugin_unlock(NULL, encryption_manager); encryption_manager= 0; + init_io_cache_encryption(); return 0; } |