diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-04-27 11:18:11 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-04-27 11:18:11 +0300 |
commit | edbdfc2f995eb47ba49235195aca00888aeacbc4 (patch) | |
tree | 144c2e26bdd69e40b5ab9f1ff3c9d9958807201d /sql/wsrep_mysqld.h | |
parent | dd4124c22430dd2f245afbf9a20cfea303de3320 (diff) | |
download | mariadb-git-edbdfc2f995eb47ba49235195aca00888aeacbc4.tar.gz |
MDEV-7962 wsrep_on() takes 0.14% in OLTP RO
The function wsrep_on() was being called rather frequently
in InnoDB and XtraDB. Let us cache it in trx_t and invoke
trx_t::is_wsrep() instead.
innobase_trx_init(): Cache trx->wsrep = wsrep_on(thd).
ha_innobase::write_row(): Replace many repeated calls to current_thd,
and test the cheapest condition first.
Diffstat (limited to 'sql/wsrep_mysqld.h')
0 files changed, 0 insertions, 0 deletions