diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2017-12-27 20:07:20 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2018-01-20 16:10:35 +0400 |
commit | 7078203389b04e742de660d78c36034a3a4deb59 (patch) | |
tree | c8b29e75c6b56bcb478615f8d3b6d579979b4b9c /storage/innobase/read | |
parent | c6d2842d9a6f46c592d7dfe465bb2b647ebb4d19 (diff) | |
download | mariadb-git-7078203389b04e742de660d78c36034a3a4deb59.tar.gz |
MDEV-14756 - Remove trx_sys_t::rw_trx_list
Use atomic operations when accessing trx_sys_t::max_trx_id. We can't yet
move trx_sys_t::get_new_trx_id() out of mutex because it must be updated
atomically along with trx_sys_t::rw_trx_ids.
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 8f4dd4f37b2..e95c89449e6 100644 --- a/storage/innobase/read/read0read.cc +++ b/storage/innobase/read/read0read.cc @@ -459,7 +459,7 @@ ReadView::prepare(trx_id_t id) m_creator_trx_id = id; - m_low_limit_no = m_low_limit_id = trx_sys->max_trx_id; + m_low_limit_no = m_low_limit_id = trx_sys->get_max_trx_id(); if (!trx_sys->rw_trx_ids.empty()) { copy_trx_ids(trx_sys->rw_trx_ids); @@ -580,7 +580,7 @@ MVCC::view_open(ReadView*& view, trx_t* trx) view->m_closed = false; - if (view->m_low_limit_id == trx_sys_get_max_trx_id()) { + if (view->m_low_limit_id == trx_sys->get_max_trx_id()) { return; } else { view->m_closed = true; |