summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-09-23 13:40:42 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-09-23 13:40:42 +0300
commita69cf6f07ee7286d4813ef5c602d5b79b39d3028 (patch)
tree6068dad43fbda21245e341a6da0164fc7ef01bd1 /sql/table.cc
parentdb7e04ed3ab5d591a323443cb20c3a45792916b6 (diff)
downloadmariadb-git-a69cf6f07ee7286d4813ef5c602d5b79b39d3028.tar.gz
MDEV-29613 Improve WITH_DBUG_TRACE=OFF
In commit 28325b08633372cc343dfcbc41fe252020cf6e6e 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
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 37a23d5b93e..ffbc75e6d7c 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -8583,7 +8583,7 @@ int TABLE::update_virtual_fields(handler *h, enum_vcol_update_mode update_mode)
{
/* Compute the actual value of the virtual fields */
DBUG_FIX_WRITE_SET(vf);
-# ifndef DBUG_OFF
+# ifdef DBUG_TRACE
int field_error=
# endif
vcol_info->expr->save_in_field(vf, 0);