Even though this works, the drop and reacquire of mutexes can lead to race conditions (as discussed on skype), a better solution may be required.
The innobase_kill_connection (called by ha_kill_connection) which is not present in upstream code (hence codership tree not affected). It was implemented in https://blueprints.launchpad.net/percona-server/+spec/port-max-statement-time
Even though this works, the drop and reacquire of mutexes can lead to race conditions (as discussed on skype), a better solution may be required.
The innobase_ kill_connection (called by ha_kill_connection) which is not present in upstream code (hence codership tree not affected). It was implemented in https:/ /blueprints. launchpad. net/percona- server/ +spec/port- max-statement- time