Skip to content
Permalink
Browse files
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.
  • Loading branch information
dr-m committed Feb 7, 2020
1 parent 9a99946 commit 2b260f2
Showing 1 changed file with 2 additions and 2 deletions.
@@ -164,7 +164,7 @@ struct mtr_t {
/** @return the logging mode */
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);
return static_cast<mtr_log_t>(m_log_mode);
}
@@ -512,7 +512,7 @@ struct mtr_t {
uint16_t m_inside_ibuf:1;

/** number of m_log records */
uint16_t m_n_log_recs:13;
uint16_t m_n_log_recs:11;
#ifdef UNIV_DEBUG
/** Persistent user tablespace associated with the
mini-transaction, or 0 (TRX_SYS_SPACE) if none yet */

0 comments on commit 2b260f2

Please sign in to comment.