Commit e54d521b authored by Marko Mäkelä's avatar Marko Mäkelä

Remove some noise from ib::fatal() and ib::fatal_or_error()

Avoid the redundant output from ut_dbg_assertion_failed by directly
invoking abort().
parent 2fd84001
...@@ -837,7 +837,7 @@ error::~error() ...@@ -837,7 +837,7 @@ error::~error()
fatal::~fatal() fatal::~fatal()
{ {
sql_print_error("[FATAL] InnoDB: %s", m_oss.str().c_str()); sql_print_error("[FATAL] InnoDB: %s", m_oss.str().c_str());
ut_error; abort();
} }
error_or_warn::~error_or_warn() error_or_warn::~error_or_warn()
...@@ -851,8 +851,11 @@ error_or_warn::~error_or_warn() ...@@ -851,8 +851,11 @@ error_or_warn::~error_or_warn()
fatal_or_error::~fatal_or_error() fatal_or_error::~fatal_or_error()
{ {
sql_print_error("InnoDB: %s", m_oss.str().c_str()); sql_print_error(m_fatal ? "[FATAL] InnoDB: %s" : "InnoDB: %s",
ut_a(!m_fatal); m_oss.str().c_str());
if (m_fatal) {
abort();
}
} }
} // namespace ib } // namespace ib
......
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