Wrap function used for debugging with the DBUG_OFF condition.
Function uses a variable only available under debug mode.
This commit is contained in:
parent
6cf143a2af
commit
b0e03c1311
@ -3720,8 +3720,9 @@ void assign_new_table_id(TABLE_SHARE *share)
|
|||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef DBUG_OFF
|
||||||
/* Cause a spurious statement reprepare for debug purposes. */
|
/* Cause a spurious statement reprepare for debug purposes. */
|
||||||
static inline bool inject_reprepare(THD *thd)
|
static bool inject_reprepare(THD *thd)
|
||||||
{
|
{
|
||||||
if (thd->m_reprepare_observer && thd->stmt_arena->is_reprepared == FALSE)
|
if (thd->m_reprepare_observer && thd->stmt_arena->is_reprepared == FALSE)
|
||||||
{
|
{
|
||||||
@ -3731,6 +3732,7 @@ static inline bool inject_reprepare(THD *thd)
|
|||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compare metadata versions of an element obtained from the table
|
Compare metadata versions of an element obtained from the table
|
||||||
|
Loading…
x
Reference in New Issue
Block a user