diff options
author | unknown <marko@hundin.mysql.fi> | 2005-07-26 14:03:34 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-07-26 14:03:34 +0300 |
commit | aee8de3527f8f14262c2c3151659f9aef77d1cf6 (patch) | |
tree | 09a5b48dce49e89f224152a39b4b3fc2ec087521 /innobase/include/os0file.h | |
parent | 6bac3d43097314a1afc639f472401d13de8121e7 (diff) | |
download | mariadb-git-aee8de3527f8f14262c2c3151659f9aef77d1cf6.tar.gz |
InnoDB: Do not flush after each write, not even when creating the
data files. Previously, writes were flushed until the doublewrite
buffer was created. That would be too slow on systems where
os_file_flush() [or fsync(2)] is slow. (Bug #12125)
innobase/include/os0file.h:
Disable os_do_not_call_flush_at_each_write unless #ifdef UNIV_DO_FLUSH
innobase/os/os0file.c:
Disable os_do_not_call_flush_at_each_write unless #ifdef UNIV_DO_FLUSH
innobase/trx/trx0sys.c:
Disable os_do_not_call_flush_at_each_write unless #ifdef UNIV_DO_FLUSH
Diffstat (limited to 'innobase/include/os0file.h')
-rw-r--r-- | innobase/include/os0file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/innobase/include/os0file.h b/innobase/include/os0file.h index 63cd41a6d28..280a949c1c5 100644 --- a/innobase/include/os0file.h +++ b/innobase/include/os0file.h @@ -17,7 +17,9 @@ Created 10/21/1995 Heikki Tuuri #include <time.h> #endif +#ifdef UNIV_DO_FLUSH extern ibool os_do_not_call_flush_at_each_write; +#endif /* UNIV_DO_FLUSH */ extern ibool os_has_said_disk_full; extern ibool os_aio_print_debug; |