summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/dist
diff options
context:
space:
mode:
authorDan Pasette <dan@mongodb.com>2015-12-16 13:15:31 -0500
committerDan Pasette <dan@mongodb.com>2015-12-16 13:15:46 -0500
commit33831818603c3c00dee06dd8bfa2bc9bea06a8af (patch)
tree3ea23b289efc57d2de1d11208fd179a1494ebdca /src/third_party/wiredtiger/dist
parenta014a946bdea5013883bff963ae6fae9fe39e2a7 (diff)
downloadmongo-33831818603c3c00dee06dd8bfa2bc9bea06a8af.tar.gz
Import wiredtiger-wiredtiger-mongodb-3.2-rc4-75-gdecd916.tar.gz from wiredtiger branch mongodb-3.2
ref: 197eef0..decd916 48e1343 WT-2262 Have random sampling walk the tree so it isn't biased in skewed trees. eb838c7 WT-2260 Avoid adding internal pages to the eviction queue. a695751 WT-2258 WiredTiger preloads pages even when direct-IO is configured.
Diffstat (limited to 'src/third_party/wiredtiger/dist')
-rw-r--r--src/third_party/wiredtiger/dist/api_data.py46
-rw-r--r--src/third_party/wiredtiger/dist/flags.py1
2 files changed, 27 insertions, 20 deletions
diff --git a/src/third_party/wiredtiger/dist/api_data.py b/src/third_party/wiredtiger/dist/api_data.py
index f58a48b4a0b..ff6d3f3ccb5 100644
--- a/src/third_party/wiredtiger/dist/api_data.py
+++ b/src/third_party/wiredtiger/dist/api_data.py
@@ -814,21 +814,19 @@ methods = {
'WT_SESSION.open_cursor' : Method(cursor_runtime_config + [
Config('bulk', 'false', r'''
- configure the cursor for bulk-loading, a fast, initial load
- path (see @ref tune_bulk_load for more information). Bulk-load
- may only be used for newly created objects and cursors
- configured for bulk-load only support the WT_CURSOR::insert
- and WT_CURSOR::close methods. When bulk-loading row-store
- objects, keys must be loaded in sorted order. The value is
- usually a true/false flag; when bulk-loading fixed-length
- column store objects, the special value \c bitmap allows
- chunks of a memory resident bitmap to be loaded directly into
- a file by passing a \c WT_ITEM to WT_CURSOR::set_value where
- the \c size field indicates the number of records in the
- bitmap (as specified by the object's \c value_format
- configuration). Bulk-loaded bitmap values must end on a byte
- boundary relative to the bit count (except for the last set
- of values loaded)'''),
+ configure the cursor for bulk-loading, a fast, initial load path
+ (see @ref tune_bulk_load for more information). Bulk-load may
+ only be used for newly created objects and applications should
+ use the WT_CURSOR::insert method to insert rows. When
+ bulk-loading, rows must be loaded in sorted order. The value
+ is usually a true/false flag; when bulk-loading fixed-length
+ column store objects, the special value \c bitmap allows chunks
+ of a memory resident bitmap to be loaded directly into a file
+ by passing a \c WT_ITEM to WT_CURSOR::set_value where the \c
+ size field indicates the number of records in the bitmap (as
+ specified by the object's \c value_format configuration).
+ Bulk-loaded bitmap values must end on a byte boundary relative
+ to the bit count (except for the last set of values loaded)'''),
Config('checkpoint', '', r'''
the name of a checkpoint to open (the reserved name
"WiredTigerCheckpoint" opens the most recent internal
@@ -843,12 +841,20 @@ methods = {
with the @ref util_dump and @ref util_load commands''',
choices=['hex', 'json', 'print']),
Config('next_random', 'false', r'''
- configure the cursor to return a pseudo-random record from
- the object; valid only for row-store cursors. Cursors
- configured with \c next_random=true only support the
- WT_CURSOR::next and WT_CURSOR::close methods. See @ref
- cursor_random for details''',
+ configure the cursor to return a pseudo-random record from the
+ object when the WT_CURSOR::next method is called; valid only for
+ row-store cursors. See @ref cursor_random for details''',
type='boolean'),
+ Config('next_random_sample_size', '0', r'''
+ cursors configured by \c next_random to return pseudo-random
+ records from the object randomly select from the entire object,
+ by default. Setting \c next_random_sample_size to a non-zero
+ value sets the number of samples the application expects to take
+ using the \c next_random cursor. A cursor configured with both
+ \c next_random and \c next_random_sample_size attempts to divide
+ the object into \c next_random_sample_size equal-sized pieces,
+ and each retrieval returns a record from one of those pieces. See
+ @ref cursor_random for details'''),
Config('raw', 'false', r'''
ignore the encodings for the key and value, manage data as if
the formats were \c "u". See @ref cursor_raw for details''',
diff --git a/src/third_party/wiredtiger/dist/flags.py b/src/third_party/wiredtiger/dist/flags.py
index 1965dfb7dbe..7d237dd39a4 100644
--- a/src/third_party/wiredtiger/dist/flags.py
+++ b/src/third_party/wiredtiger/dist/flags.py
@@ -37,6 +37,7 @@ flags = {
'READ_NO_WAIT',
'READ_PREV',
'READ_SKIP_INTL',
+ 'READ_SKIP_LEAF',
'READ_TRUNCATE',
'READ_WONT_NEED',
],