summaryrefslogtreecommitdiff
path: root/sql/mysqld.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-10-26 19:14:37 +0300
committerMonty <monty@mariadb.org>2017-12-18 13:43:37 +0200
commitabceaa75428f9b2d64ce64629d010af9aa6eae1f (patch)
tree99dfd31c24934fb8622e71e996fcb2c173d4e037 /sql/mysqld.h
parent13770edbcb181f06315dab659b592edf6355efc6 (diff)
downloadmariadb-git-abceaa75428f9b2d64ce64629d010af9aa6eae1f.tar.gz
Optimize RUN_HOOK() call
RUN_HOOK() is only called if semisync is enabled As the server can't disable the hooks if something is in progress, I added a new variable, run_hooks_enabled, that is set the first time semi sync is used. This means that RUN_HOOK will have no overhead, unless semi sync master or slave has been enabled once. Some of the changes was just to get rid of warnings for embedded server
Diffstat (limited to 'sql/mysqld.h')
-rw-r--r--sql/mysqld.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/mysqld.h b/sql/mysqld.h
index f72132820fe..1da95fd13f5 100644
--- a/sql/mysqld.h
+++ b/sql/mysqld.h
@@ -109,6 +109,7 @@ extern CHARSET_INFO *character_set_filesystem;
extern MY_BITMAP temp_pool;
extern bool opt_large_files;
extern bool opt_update_log, opt_bin_log, opt_error_log, opt_bin_log_compress;
+extern bool run_hooks_enabled;
extern uint opt_bin_log_compress_min_len;
extern my_bool opt_log, opt_bootstrap;
extern my_bool opt_backup_history_log;