diff options
author | unknown <monty@mashka.mysql.fi> | 2002-12-14 12:05:45 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-12-14 12:05:45 +0200 |
commit | ab857858205d07c44b626246baa7c2380d9ce8ae (patch) | |
tree | 8f1a4ba62a7c7de85fb4a30e71547625832bbb1b /sql/log.cc | |
parent | 72acfa4692eb5f4c6483969087378ce464637f99 (diff) | |
download | mariadb-git-ab857858205d07c44b626246baa7c2380d9ce8ae.tar.gz |
Transactions in AUTOCOMMIT=0 mode didn't rotate binary log.
Diffstat (limited to 'sql/log.cc')
-rw-r--r-- | sql/log.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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; |