diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-12-09 12:39:19 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-12-09 12:39:19 +0100 |
commit | f6fcb348add7be804b0cc2ee9ad684f687387e1b (patch) | |
tree | 6652e2cb037b41f54e1f982430391f6795491433 /sql/sql_plugin.h | |
parent | 47ee721923053a122576b44b5954534edb259355 (diff) | |
download | mariadb-git-f6fcb348add7be804b0cc2ee9ad684f687387e1b.tar.gz |
remove sys_var specific restore_pluginvar_names() function,
use generic restore_ptr_backup() approach
Diffstat (limited to 'sql/sql_plugin.h')
-rw-r--r-- | sql/sql_plugin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_plugin.h b/sql/sql_plugin.h index 5aa336a1309..a0225f4a071 100644 --- a/sql/sql_plugin.h +++ b/sql/sql_plugin.h @@ -85,6 +85,7 @@ struct st_ptr_backup { void **ptr; void *value; void save(void **p) { ptr= p; value= *p; } + void save(const char **p) { save((void**)p); } void restore() { *ptr= value; } }; @@ -108,6 +109,8 @@ struct st_plugin_int LEX_STRING name; struct st_maria_plugin *plugin; struct st_plugin_dl *plugin_dl; + st_ptr_backup *ptr_backup; + uint nbackups; uint state; uint ref_count; /* number of threads using the plugin */ uint locks_total; /* how many times the plugin was locked */ |