summaryrefslogtreecommitdiff
path: root/dist/api_data.py
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2015-01-17 05:15:04 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2015-01-17 05:15:04 +1100
commit1b033e5b2b4caba973f24a85c3591eb45e991538 (patch)
tree5f67f7dfc5f81b1df997b43492dba89e21fb2544 /dist/api_data.py
parenteb1511f3f1fb3be31cce7c4b288608997dd77c3e (diff)
downloadmongo-1b033e5b2b4caba973f24a85c3591eb45e991538.tar.gz
Don't allow "readonly" to be reconfigured on cursors.
refs #1467
Diffstat (limited to 'dist/api_data.py')
-rw-r--r--dist/api_data.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/dist/api_data.py b/dist/api_data.py
index d356ee27ed4..0141526285c 100644
--- a/dist/api_data.py
+++ b/dist/api_data.py
@@ -559,7 +559,7 @@ common_wiredtiger_open = [
]),
]
-cursor_config = [
+cursor_runtime_config = [
Config('append', 'false', r'''
append the value as a new record, creating a new record
number key; valid only for cursors with record number keys''',
@@ -571,12 +571,6 @@ cursor_config = [
if the record exists, WT_CURSOR::update and WT_CURSOR::remove
fail with ::WT_NOTFOUND if the record does not exist''',
type='boolean'),
- Config('readonly', 'false', r'''
- only query operations are supported by this cursor. An error is
- returned if a modification is attempted using the cursor. The
- default is false for all cursor types except for log and metadata
- cursors''',
- type='boolean'),
]
methods = {
@@ -590,7 +584,7 @@ methods = {
'cursor.close' : Method([]),
-'cursor.reconfigure' : Method(cursor_config),
+'cursor.reconfigure' : Method(cursor_runtime_config),
'session.close' : Method([]),
@@ -622,7 +616,7 @@ methods = {
'session.log_printf' : Method([]),
-'session.open_cursor' : Method(cursor_config + [
+'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
@@ -663,6 +657,12 @@ methods = {
ignore the encodings for the key and value, manage data as if
the formats were \c "u". See @ref cursor_raw for details''',
type='boolean'),
+ Config('readonly', 'false', r'''
+ only query operations are supported by this cursor. An error is
+ returned if a modification is attempted using the cursor. The
+ default is false for all cursor types except for log and metadata
+ cursors''',
+ type='boolean'),
Config('skip_sort_check', 'false', r'''
skip the check of the sort order of each bulk-loaded key''',
type='boolean', undoc=True),