From e5a0daae5a95b3fa116d71f65dfaf85cbbb1ca7d Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 6 May 2013 14:35:34 +0200 Subject: Fix big problem in previous push. (Relay log cleanup would nuke binlog state) --- sql/log.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/log.cc b/sql/log.cc index a96ec830b01..c0cd4be8a45 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -2999,7 +2999,8 @@ void MYSQL_BIN_LOG::cleanup() We can't do that automaticly as we need to do this before safemalloc is shut down */ - rpl_global_gtid_binlog_state.free(); + if (!is_relay_log) + rpl_global_gtid_binlog_state.free(); DBUG_VOID_RETURN; } -- cgit v1.2.1