mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Transactions in AUTOCOMMIT=0 mode didn't rotate binary log.
This commit is contained in:
parent
7d94b23a04
commit
4886a2340b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue