From 4886a2340bfd2492f9458aaa83c8db69a5abf126 Mon Sep 17 00:00:00 2001 From: "monty@mashka.mysql.fi" <> Date: Sat, 14 Dec 2002 12:05:45 +0200 Subject: [PATCH] Transactions in AUTOCOMMIT=0 mode didn't rotate binary log. --- sql/log.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/log.cc b/sql/log.cc index 33c7414644a..b6c842e551d 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -807,6 +807,9 @@ bool MYSQL_LOG::write(THD *thd, IO_CACHE *cache) log_file.pos_in_file); if (error) goto err; + + if (my_b_tell(&log_file) >= (my_off_t) max_binlog_size) + new_file(1); // inside mutex } error=0;