diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2018-01-25 18:29:59 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2018-01-26 10:25:33 +0400 |
commit | 55277e8840f359ed36a99359a7e21f03af72a78a (patch) | |
tree | b999bf96dfe686725a6494183b01ebfe1f7a6887 /storage/innobase/read | |
parent | 064bd78038ca8d76ca1612d849ccdcbbe4324110 (diff) | |
download | mariadb-git-55277e8840f359ed36a99359a7e21f03af72a78a.tar.gz |
MDEV-15059 - Misc small InnoDB scalability fixes
Form better trx_sys API.
Diffstat (limited to 'storage/innobase/read')
-rw-r--r-- | storage/innobase/read/read0read.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/read/read0read.cc b/storage/innobase/read/read0read.cc index 8eca93f329a..c018ab170d0 100644 --- a/storage/innobase/read/read0read.cc +++ b/storage/innobase/read/read0read.cc @@ -222,7 +222,7 @@ void ReadView::clone() rw_trx_hash are in sync and they hold either ACTIVE or PREPARED transaction. - Now rw_trx_hash.find() does + Now rw_trx_hash_t::find() does ut_ad(trx_state_eq(trx, TRX_STATE_ACTIVE) || trx_state_eq(trx, TRX_STATE_PREPARED)). No need to repeat it here. We even can't repeat it here: it'll be race @@ -235,7 +235,7 @@ void ReadView::clone() protection. Thus we need repeat this lookup. */ for (trx_ids_t::const_iterator it = trx_sys.rw_trx_ids.begin(); it != trx_sys.rw_trx_ids.end(); ++it) { - while (!trx_sys.rw_trx_hash.find(*it)); + while (!trx_sys.is_registered(current_trx(), *it)); } #endif /* UNIV_DEBUG */ m_up_limit_id = m_ids.empty() ? m_low_limit_id : m_ids.front(); |