summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-01-25 14:16:41 +0200
committerunknown <marko@hundin.mysql.fi>2005-01-25 14:16:41 +0200
commitb7c59b9e2266f35dbaa60f8fd2ffa371bbfc46b6 (patch)
tree18b3afa36cf4027a5172d4006fc2e2eb4dc92d28 /innobase
parent25c2d1adb09a3dd521a110013ab03eac3e1fc01a (diff)
downloadmariadb-git-b7c59b9e2266f35dbaa60f8fd2ffa371bbfc46b6.tar.gz
InnoDB: Enable ut_ad() assertions in MySQL debug builds.
innobase/include/univ.i: InnoDB: Define UNIV_DEBUG when DBUG_ON (in MySQL) is defined. This enables InnoDB debug assertions in debug builds of mysqld.
Diffstat (limited to 'innobase')
-rw-r--r--innobase/include/univ.i4
1 files changed, 3 insertions, 1 deletions
diff --git a/innobase/include/univ.i b/innobase/include/univ.i
index 4854e5a7b78..12846593977 100644
--- a/innobase/include/univ.i
+++ b/innobase/include/univ.i
@@ -86,8 +86,10 @@ memory is read outside the allocated blocks. */
/* Make a non-inline debug version */
+#ifdef DBUG_ON
+# define UNIV_DEBUG
+#endif /* DBUG_ON */
/*
-#define UNIV_DEBUG
#define UNIV_SYNC_DEBUG
#define UNIV_MEM_DEBUG