diff options
author | Monty <monty@mariadb.org> | 2017-10-26 19:14:37 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2017-12-18 13:43:37 +0200 |
commit | abceaa75428f9b2d64ce64629d010af9aa6eae1f (patch) | |
tree | 99dfd31c24934fb8622e71e996fcb2c173d4e037 /sql/rpl_rli.cc | |
parent | 13770edbcb181f06315dab659b592edf6355efc6 (diff) | |
download | mariadb-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/rpl_rli.cc')
0 files changed, 0 insertions, 0 deletions