summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-04-27 11:18:11 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-04-27 11:18:11 +0300
commitedbdfc2f995eb47ba49235195aca00888aeacbc4 (patch)
tree144c2e26bdd69e40b5ab9f1ff3c9d9958807201d /sql/item_func.cc
parentdd4124c22430dd2f245afbf9a20cfea303de3320 (diff)
downloadmariadb-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/item_func.cc')
0 files changed, 0 insertions, 0 deletions