diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-02-09 15:10:10 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-02-09 15:10:10 +0200 |
commit | fd101daa84ec5f70f09c48e3fb7a4ce8f6d26edb (patch) | |
tree | f5684f6bcaedda141e97ac9e7226cc4196836a28 /sql/sql_test.h | |
parent | 34c5019698ae2cab5be769b70665448a88f3ebbf (diff) | |
download | mariadb-git-fd101daa84ec5f70f09c48e3fb7a4ce8f6d26edb.tar.gz |
MDEV-27716 mtr_t::commit() acquires log_sys.mutex when writing no log
mtr_t::is_block_dirtied(), mtr_t::memo_push(): Never set m_made_dirty
for pages of the temporary tablespace. Ever since
commit 5eb539555b36a60944eefeb84d5d6d436ba61e63
we never add those pages to buf_pool.flush_list.
mtr_t::commit(): Implement part of mtr_t::prepare_write() here,
and avoid acquiring log_sys.mutex if no log is written.
During IMPORT TABLESPACE fixup, we do not write log, but we must
add pages to buf_pool.flush_list and for that, be prepared
to acquire log_sys.flush_order_mutex.
mtr_t::do_write(): Replaces mtr_t::prepare_write().
Diffstat (limited to 'sql/sql_test.h')
0 files changed, 0 insertions, 0 deletions