diff options
author | unknown <guilhem@mysql.com> | 2004-06-10 15:56:13 +0200 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2004-06-10 15:56:13 +0200 |
commit | 7ece3c749152fd9a5df821398852a4cb02ec13a2 (patch) | |
tree | 9776f371549ba002dc5dde8ab3d942e3ec380a66 /sql/sql_lex.cc | |
parent | 7f4402201f87978960e206f97674bf30f1a414ae (diff) | |
download | mariadb-git-7ece3c749152fd9a5df821398852a4cb02ec13a2.tar.gz |
WL#1595 "Optionally fsync() the binlog after every statement":
New option --sync-binlog=x (and global settable variable) which will fsync the binlog
after every x-th disk write to it. That is, if in autocommit mode, after every x-th statement
written to the binlog; if using transactions, after every x-th transaction written to the binlog.
x==0 means no fsync. x==1 is the slowest.
There is no test added for this, I have just checked that it works as --sync-binlog=1 dramatically
slows down mysqld.
Made sync-frm a global settable variable.
sql/log.cc:
every sync_binlog_period-th disk binlog write, we fsync the binlog
sql/mysql_priv.h:
new option sync_binlog
sql/mysqld.cc:
new option sync_binlog
sql/set_var.cc:
Making sync-frm a settable global option.
New settable global option sync-binlog.
sql/set_var.h:
new global settable variable sync_binlog needs a specific ::update because it needs to take LOCK_log
Diffstat (limited to 'sql/sql_lex.cc')
0 files changed, 0 insertions, 0 deletions