summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2002-01-26 22:26:24 -0700
committersasha@mysql.sashanet.com <>2002-01-26 22:26:24 -0700
commit7275dcef35d14ff5f82f3520fe6e6e0766bc13b5 (patch)
tree7805cfd6c7eb661c4f3022b7fc37478a0908a190 /sql/log.cc
parent40fcae6d4b7c02e6cd18b98d8d3b8c525e51aeae (diff)
downloadmariadb-git-7275dcef35d14ff5f82f3520fe6e6e0766bc13b5.tar.gz
misc replication bugfixes including some needed modifications in IO_CACHE
likely() and unlikely() branch prediction compiler hint macros clean-up of comments
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/log.cc b/sql/log.cc
index d3ad4564a73..17b6ef4344c 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -742,12 +742,13 @@ bool MYSQL_LOG::appendv(const char* buf, uint len,...)
error = 1;
break;
}
- if ((uint)my_b_append_tell(&log_file) > max_binlog_size)
- {
- new_file(1);
- }
} while ((buf=va_arg(args,const char*)) && (len=va_arg(args,uint)));
+ if ((uint)my_b_append_tell(&log_file) > max_binlog_size)
+ {
+ new_file(1);
+ }
+
if (!error)
signal_update();
pthread_mutex_unlock(&LOCK_log);