diff options
author | unknown <jani@ua141d10.elisa.omakaista.fi> | 2004-02-03 18:10:45 +0000 |
---|---|---|
committer | unknown <jani@ua141d10.elisa.omakaista.fi> | 2004-02-03 18:10:45 +0000 |
commit | ec76183bec12a932e6cce00a7f730d4e9e8cfd03 (patch) | |
tree | 5f93e274b0973de3168e0acdedbc204786e89ce9 /sql/unireg.cc | |
parent | 92bcbf9a43e2d74ee323f5e768923bfc289e83ce (diff) | |
download | mariadb-git-ec76183bec12a932e6cce00a7f730d4e9e8cfd03.tar.gz |
Added new option --sync-frm / --skip-sync-frm
Marked --bdb-no-sync as deprecated
Added --sync-bdb-logs / --disable-sync-bdb-logs as a synonym / alternative.
mysys/my_getopt.c:
Changed my_getopt so that disabled_my_option can be used for
GET_BOOL type options too.
sql/mysql_priv.h:
Added opt_sync_frm
sql/mysqld.cc:
Added sync-frm / disable-sync-frm to mysqld, to be able to disable
use of my_sync() (fsync()). This defaults to behavior in 4.0.16
and before, where creating of new tables is quicker than currently.
This option is enabled by default.
Marked --bdb-no-sync as deprecated option and added another one,
--sync-bdb-logs besides. --bdb-no-sync and --disabled-sync-bdb-logs
are now synonyms.
sql/unireg.cc:
One can disable my_sync() by using --disable-sync-frm
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc index ff42bfae0f0..955e5cfda8a 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -150,7 +150,7 @@ int rea_create_table(my_string file_name, my_free((gptr) screen_buff,MYF(0)); my_afree((gptr) keybuff); - if (my_sync(file, MYF(MY_WME))) + if (opt_sync_frm && my_sync(file, MYF(MY_WME))) goto err2; if (my_close(file,MYF(MY_WME)) || ha_create_table(file_name,create_info,0)) |