summaryrefslogtreecommitdiff
path: root/innobase/include/os0file.h
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-07-26 14:03:34 +0300
committerunknown <marko@hundin.mysql.fi>2005-07-26 14:03:34 +0300
commitaee8de3527f8f14262c2c3151659f9aef77d1cf6 (patch)
tree09a5b48dce49e89f224152a39b4b3fc2ec087521 /innobase/include/os0file.h
parent6bac3d43097314a1afc639f472401d13de8121e7 (diff)
downloadmariadb-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.h2
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;