Commit 05e6b27a authored by unknown's avatar unknown

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

parent 446f2356
...@@ -807,6 +807,9 @@ bool MYSQL_LOG::write(THD *thd, IO_CACHE *cache) ...@@ -807,6 +807,9 @@ bool MYSQL_LOG::write(THD *thd, IO_CACHE *cache)
log_file.pos_in_file); log_file.pos_in_file);
if (error) if (error)
goto err; goto err;
if (my_b_tell(&log_file) >= (my_off_t) max_binlog_size)
new_file(1); // inside mutex
} }
error=0; error=0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment