From b6bb988d12f7df7033cbb9cebc58036d264ad26e Mon Sep 17 00:00:00 2001 From: "gkodinov/kgeorge@magare.gmz" <> Date: Mon, 30 Jul 2007 16:03:52 +0300 Subject: [PATCH] Moved the DBUG_ASSERT from bug 28983 to a place where it would not obstruct correct multithreading. --- sql/log.cc | 1 + 1 file changed, 1 insertion(+) 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;