Fix big problem in previous push. (Relay log cleanup would nuke binlog state)

This commit is contained in:
unknown 2013-05-06 14:35:34 +02:00
parent 5333dafa84
commit e5a0daae5a

View File

@ -2999,7 +2999,8 @@ void MYSQL_BIN_LOG::cleanup()
We can't do that automaticly as we need to do this before We can't do that automaticly as we need to do this before
safemalloc is shut down safemalloc is shut down
*/ */
rpl_global_gtid_binlog_state.free(); if (!is_relay_log)
rpl_global_gtid_binlog_state.free();
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }