mirror of
https://github.com/MariaDB/server.git
synced 2026-04-19 14:55:32 +02:00
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
This commit is contained in:
parent
92bcbf9a43
commit
ec76183bec
5 changed files with 32 additions and 11 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue