summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorcmiller@zippy.(none) <>2006-06-12 08:54:45 -0400
committercmiller@zippy.(none) <>2006-06-12 08:54:45 -0400
commit7b63337d312480c020a5b54a36b76a5cb8059659 (patch)
treeb71c8e383c0806357a95ccd2fec43a371a133ceb /sql/log_event.h
parente5963d6a173c6fc1167734e2e1ad93de61b61df4 (diff)
downloadmariadb-git-7b63337d312480c020a5b54a36b76a5cb8059659.tar.gz
Bug #16206: Superfluous COMMIT event in binlog when updating BDB in autocommit
mode This is a modification of serg's and guilhem's suggestion in the bug report, in that it also causes the transaction log to be written to disc.
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index 0e1eb7cd13c..f1b441dedb1 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -783,6 +783,7 @@ public:
void print(FILE* file, PRINT_EVENT_INFO* print_event_info= 0);
#endif
+ Query_log_event();
Query_log_event(const char* buf, uint event_len,
const Format_description_log_event *description_event,
Log_event_type event_type);
@@ -806,6 +807,26 @@ public:
/* Writes derived event-specific part of post header. */
};
+
+/*****************************************************************************
+
+ Muted Query Log Event class
+
+ Pretends to Log SQL queries, but doesn't actually do so.
+
+ ****************************************************************************/
+class Muted_query_log_event: public Query_log_event
+{
+public:
+#ifndef MYSQL_CLIENT
+ Muted_query_log_event();
+
+ bool write(IO_CACHE* file) { return(false); };
+ virtual bool write_post_header_for_derived(IO_CACHE* file) { return FALSE; }
+#endif
+};
+
+
#ifdef HAVE_REPLICATION
/*****************************************************************************