summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2008-10-03 08:16:58 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2008-10-03 08:16:58 -0300
commitb0e03c1311be8b39d4ce805b1075bab45b265f7e (patch)
treea9fb24e9b633542ffbc0e012a50000ff2113bc0a /sql
parent6cf143a2af58b98bbe75a5b7c2020be31eaf3226 (diff)
downloadmariadb-git-b0e03c1311be8b39d4ce805b1075bab45b265f7e.tar.gz
Wrap function used for debugging with the DBUG_OFF condition.
Function uses a variable only available under debug mode.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_base.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index ad9af040dbb..e8097d79f82 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -3720,8 +3720,9 @@ void assign_new_table_id(TABLE_SHARE *share)
DBUG_VOID_RETURN;
}
+#ifndef DBUG_OFF
/* 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)
{
@@ -3731,6 +3732,7 @@ static inline bool inject_reprepare(THD *thd)
return FALSE;
}
+#endif
/**
Compare metadata versions of an element obtained from the table