Commit 2b260f2d authored by Marko Mäkelä's avatar Marko Mäkelä

Fixup the parent commit

mtr_t::get_log_mode(): Use equivalent static_assert().

mtr_t::m_n_log_recs: Do not exceed the number of bits in uint16_t.
parent 9a999469
...@@ -164,7 +164,7 @@ struct mtr_t { ...@@ -164,7 +164,7 @@ struct mtr_t {
/** @return the logging mode */ /** @return the logging mode */
mtr_log_t get_log_mode() const mtr_log_t get_log_mode() const
{ {
ut_ad(m_log_mode >= MTR_LOG_ALL); static_assert(MTR_LOG_ALL == 0, "efficiency");
ut_ad(m_log_mode <= MTR_LOG_SHORT_INSERTS); ut_ad(m_log_mode <= MTR_LOG_SHORT_INSERTS);
return static_cast<mtr_log_t>(m_log_mode); return static_cast<mtr_log_t>(m_log_mode);
} }
...@@ -512,7 +512,7 @@ struct mtr_t { ...@@ -512,7 +512,7 @@ struct mtr_t {
uint16_t m_inside_ibuf:1; uint16_t m_inside_ibuf:1;
/** number of m_log records */ /** number of m_log records */
uint16_t m_n_log_recs:13; uint16_t m_n_log_recs:11;
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
/** Persistent user tablespace associated with the /** Persistent user tablespace associated with the
mini-transaction, or 0 (TRX_SYS_SPACE) if none yet */ mini-transaction, or 0 (TRX_SYS_SPACE) if none yet */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment