summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@magare.gmz>2007-07-30 16:03:52 +0300
committerunknown <gkodinov/kgeorge@magare.gmz>2007-07-30 16:03:52 +0300
commitb9097abf00983f479f8e4b9f0ee82ac7fde74adc (patch)
treece8b8fbd708c0bdc2026434c68f6e34fe4e9ef5c
parentd86f0a1382c71a6e1bb4f7d8d42cf2b8336c02cc (diff)
downloadmariadb-git-b9097abf00983f479f8e4b9f0ee82ac7fde74adc.tar.gz
Moved the DBUG_ASSERT from bug 28983 to
a place where it would not obstruct correct multithreading.
-rw-r--r--sql/log.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 744d2a3ca65..6992f6c10ef 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -1833,6 +1833,7 @@ bool MYSQL_LOG::write(THD *thd, IO_CACHE *cache, Log_event *commit_event)
/* NULL would represent nothing to replicate after ROLLBACK */
DBUG_ASSERT(commit_event != NULL);
+ DBUG_ASSERT(is_open());
if (likely(is_open())) // Should always be true
{
uint length, group, carry, hdr_offs, val;