mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-329: MariaDB 5.5 does not use fdatasync().
The --debug-no-sync incorrectly defaulted to ON, disabling sync calls by default which can loose data or cause corruption. Also, the code used fsync() instead of the sometimes more efficient fdatasync().
This commit is contained in:
@ -6161,7 +6161,7 @@ struct my_option my_long_options[]=
|
||||
#endif
|
||||
{"debug-no-sync", 0,
|
||||
"Disables system sync calls. Only for running tests or debugging!",
|
||||
&my_disable_sync, &my_disable_sync, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
|
||||
&my_disable_sync, &my_disable_sync, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#ifdef HAVE_REPLICATION
|
||||
{"debug-sporadic-binlog-dump-fail", 0,
|
||||
"Option used by mysql-test for debugging and testing of replication.",
|
||||
|
Reference in New Issue
Block a user