mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-29613 Improve WITH_DBUG_TRACE=OFF
In commit 28325b0863
a compile-time option was introduced to disable the macros
DBUG_ENTER and DBUG_RETURN or DBUG_VOID_RETURN.
The parameter name WITH_DBUG_TRACE would hint that it also
covers DBUG_PRINT statements. Let us do that: WITH_DBUG_TRACE=OFF
shall disable DBUG_PRINT() as well.
A few InnoDB recovery tests used to check that some output from
DBUG_PRINT("ib_log", ...) is present. We can live without those checks.
Reviewed by: Vladislav Vaintroub
This commit is contained in:
@ -263,14 +263,14 @@ public:
|
||||
*/
|
||||
int check_state(enum_state const target_state)
|
||||
{
|
||||
#ifndef DBUG_OFF
|
||||
#ifdef DBUG_TRACE
|
||||
static char const *state_name[] = {
|
||||
"START_STATE", "TABLE_STATE", "ROW_STATE", "STATE_COUNT"
|
||||
};
|
||||
|
||||
DBUG_ASSERT(target_state <= STATE_COUNT);
|
||||
DBUG_PRINT("info", ("In state %s", state_name[m_state]));
|
||||
#endif
|
||||
DBUG_ASSERT(target_state <= STATE_COUNT);
|
||||
|
||||
if (m_state <= target_state && target_state <= m_state + 1 &&
|
||||
m_state < STATE_COUNT)
|
||||
|
Reference in New Issue
Block a user