Commit 4886a234 authored by monty@mashka.mysql.fi's avatar monty@mashka.mysql.fi
Browse files

Transactions in AUTOCOMMIT=0 mode didn't rotate binary log.

parent 7d94b23a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;