summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorsueloverso <sue@mongodb.com>2016-12-04 23:22:58 -0500
committerMichael Cahill <michael.cahill@mongodb.com>2016-12-05 15:22:58 +1100
commit853430ea86b8e29cdfa9de34606405d52384d2db (patch)
tree60b562016008db77e3f610ad0067e3c40883fdd5 /dist
parentd2dfe81c95cb2cd2c04cf7e7711c8ad247d63ce1 (diff)
downloadmongo-853430ea86b8e29cdfa9de34606405d52384d2db.tar.gz
WT-2670 Add access_pattern_hint configuration for tables (#3155)
Diffstat (limited to 'dist')
-rw-r--r--dist/api_config.py3
-rw-r--r--dist/api_data.py8
2 files changed, 10 insertions, 1 deletions
diff --git a/dist/api_config.py b/dist/api_config.py
index 1069a7037ce..d83a632321e 100644
--- a/dist/api_config.py
+++ b/dist/api_config.py
@@ -198,7 +198,8 @@ def get_default(c):
return 'false'
elif c.default == 'true':
return 'true'
- elif t == 'string' and c.default == 'none':
+ elif t == 'string' and c.default == 'none' and \
+ not c.flags.get('choices', []):
return ''
elif t == 'category':
return '(%s)' % (','.join('%s=%s' % (subc.name, get_default(subc))
diff --git a/dist/api_data.py b/dist/api_data.py
index aa76ff45d1a..2d4371923e1 100644
--- a/dist/api_data.py
+++ b/dist/api_data.py
@@ -120,6 +120,14 @@ lsm_config = [
# Per-file configuration
file_config = format_meta + [
+ Config('access_pattern_hint', 'none', r'''
+ It is recommended that workloads that consist primarily of
+ updates and/or point queries specify \c random. Workloads that
+ do many cursor scans through large ranges of data specify
+ \c sequential and other workloads specify \c none. The
+ option leads to an advisory call to an appropriate operating
+ system API where available''',
+ choices=['none', 'random', 'sequential']),
Config('block_allocation', 'best', r'''
configure block allocation. Permitted values are \c "first" or
\c "best"; the \c "first" configuration uses a first-available