summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2020-08-11 00:01:53 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2020-08-11 00:01:53 +0400
commit19bdb03e97d6f760699cd718e11f71e01c268f5e (patch)
tree3399b856c7bc246e3faec3cb1aad40badac8764a /sql/sql_plugin.h
parent0041dacc1b8e85e1958355d1cfdc36055b05a884 (diff)
downloadmariadb-git-bb-mdev21211-hf.tar.gz
MDEV-21211 LOCK_plugin optimization.bb-mdev21211-hf
Use Apc_target calls to 'notify' threads about changes in plugins.
Diffstat (limited to 'sql/sql_plugin.h')
-rw-r--r--sql/sql_plugin.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_plugin.h b/sql/sql_plugin.h
index c9c75d07a6e..3258f14a0ab 100644
--- a/sql/sql_plugin.h
+++ b/sql/sql_plugin.h
@@ -113,8 +113,8 @@ struct st_plugin_int
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 */
+ volatile int32 ref_count; /* number of threads using the plugin */
+ volatile int32 locks_total; /* how many times the plugin was locked */
void *data; /* plugin type specific, e.g. handlerton */
MEM_ROOT mem_root; /* memory for dynamic plugin structures */
sys_var *system_vars; /* server variables for this plugin */
@@ -182,7 +182,6 @@ extern void plugin_thdvar_init(THD *thd);
extern void plugin_thdvar_cleanup(THD *thd);
sys_var *find_plugin_sysvar(st_plugin_int *plugin, st_mysql_sys_var *var);
void plugin_opt_set_limits(struct my_option *, const struct st_mysql_sys_var *);
-extern SHOW_COMP_OPTION plugin_status(const char *name, size_t len, int type);
extern bool check_valid_path(const char *path, size_t length);
extern void plugin_mutex_init();