• Monty's avatar
    Optimize RUN_HOOK() call · abceaa75
    Monty authored
    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
    abceaa75
mysqld.h 32 KB