summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-11-06 17:39:59 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2015-11-06 17:39:59 +1100
commitb1141548ad6be5801bc8a359439c07e45582bc91 (patch)
tree23e7849edb0fa7f9ce3719cd7cdaeaa6b1a15507 /dist
parentf257f51facda15b56dd5a314b13522c3348019a5 (diff)
downloadmongo-b1141548ad6be5801bc8a359439c07e45582bc91.tar.gz
WT-2200 Edit wording of direct_io docs, don't allow write_through on read-only checkpoints.
Diffstat (limited to 'dist')
-rw-r--r--dist/api_data.py43
1 files changed, 20 insertions, 23 deletions
diff --git a/dist/api_data.py b/dist/api_data.py
index 87c66ec161b..9afff74ca71 100644
--- a/dist/api_data.py
+++ b/dist/api_data.py
@@ -594,17 +594,16 @@ wiredtiger_open_common = connection_runtime_config + [
checkpoints''',
type='boolean'),
Config('direct_io', '', r'''
- Use \c O_DIRECT on Posix systems, and FILE_FLAG_NO_BUFFERING on Windows
- to access files. Options are given as a list,
- such as <code>"direct_io=[data]"</code>. Configuring
- \c direct_io requires care, see @ref
- tuning_system_buffer_cache_direct_io for important warnings.
- Including \c "data" will cause WiredTiger data files to use
- \c O_DIRECT, including \c "log" will cause WiredTiger log files
- to use \c O_DIRECT, and including \c "checkpoint" will cause
- WiredTiger data files opened at a checkpoint (i.e: read only) to
- use \c O_DIRECT. It should be combined with write_through to get the
- equivalent of O_DIRECT on Windows.''',
+ Use \c O_DIRECT on POSIX systems, and \c FILE_FLAG_NO_BUFFERING on
+ Windows to access files. Options are given as a list, such as
+ <code>"direct_io=[data]"</code>. Configuring \c direct_io requires
+ care, see @ref tuning_system_buffer_cache_direct_io for important
+ warnings. Including \c "data" will cause WiredTiger data files to use
+ direct I/O, including \c "log" will cause WiredTiger log files to use
+ direct I/O, and including \c "checkpoint" will cause WiredTiger data
+ files opened at a checkpoint (i.e: read only) to use direct I/O.
+ \c direct_io should be combined with \c write_through to get the
+ equivalent of \c O_DIRECT on Windows.''',
type='list', choices=['checkpoint', 'data', 'log']),
Config('encryption', '', r'''
configure an encryptor for system wide metadata and logs.
@@ -677,18 +676,16 @@ wiredtiger_open_common = connection_runtime_config + [
choices=['dsync', 'fsync', 'none']),
]),
Config('write_through', '', r'''
- Use \c FILE_FLAG_WRITE_THROUGH on Windows to write to files.
- Options are given as a list,
- such as <code>"write_through=[data]"</code>. Configuring
- \c write_through requires care, see @ref
- tuning_system_buffer_cache_direct_io for important warnings.
- Including \c "data" will cause WiredTiger data files to use
- \c FILE_FLAG_WRITE_THROUGH, including \c "log" will cause WiredTiger log
- files to use \c FILE_FLAG_WRITE_THROUGH, and including \c "checkpoint"
- will cause WiredTiger data files opened at a checkpoint (i.e: read only)
- to use \c FILE_FLAG_WRITE_THROUGH. It should be combined with
- direct_io to get the equivalent of O_DIRECT on Windows.''',
- type='list', choices=['checkpoint', 'data', 'log']),
+ Use \c FILE_FLAG_WRITE_THROUGH on Windows to write to files. Ignored
+ on non-Windows systems. Options are given as a list, such as
+ <code>"write_through=[data]"</code>. Configuring \c write_through
+ requires care, see @ref tuning_system_buffer_cache_direct_io for
+ important warnings. Including \c "data" will cause WiredTiger data
+ files to write through cache, including \c "log" will cause WiredTiger
+ log files to write through cache. \c write_through should be combined
+ with \c direct_io to get the equivalent of POSIX \c O_DIRECT on
+ Windows.''',
+ type='list', choices=['data', 'log']),
]
wiredtiger_open = wiredtiger_open_common + [