diff options
author | Luke Chen <luke.chen@mongodb.com> | 2020-02-19 03:01:15 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-02-19 03:01:15 +0000 |
commit | 89d41b39c093918ba9dc27841f0841b237d3f438 (patch) | |
tree | 6dfc05e5465fa304b2d5b5dccfa83ad5e315dfdd /src/third_party/wiredtiger/lang | |
parent | e83d9fac85aa2d8a9a21afb45c497976c9ddaef9 (diff) | |
download | mongo-89d41b39c093918ba9dc27841f0841b237d3f438.tar.gz |
Import wiredtiger: 58baf804dd6e5a72c4e122cfb696e2d06a9fc888 from branch mongodb-4.4
ref: d74cb1a913..58baf804dd
for: 4.3.4
WT-5371 Fix test_stat08.py assertion failure
WT-5521 Cache stuck during format initial load, configured with library checkpoints
WT-5584 Change format to ignore Evergreen timestamps in configuration files
WT-5587 Limit how many checkpoints are dropped by a subsequent checkpoint
Diffstat (limited to 'src/third_party/wiredtiger/lang')
-rw-r--r-- | src/third_party/wiredtiger/lang/python/wiredtiger.i | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/lang/python/wiredtiger.i b/src/third_party/wiredtiger/lang/python/wiredtiger.i index 319e703d445..b72abdf072d 100644 --- a/src/third_party/wiredtiger/lang/python/wiredtiger.i +++ b/src/third_party/wiredtiger/lang/python/wiredtiger.i @@ -42,6 +42,7 @@ This provides an API similar to the C API, with the following modifications: - Statistics cursors behave a little differently and are best handled using the C-like functions - C Constants starting with WT_STAT_DSRC are instead exposed under wiredtiger.stat.dsrc - C Constants starting with WT_STAT_CONN are instead exposed under wiredtiger.stat.conn + - C Constants starting with WT_STAT_SESSION are instead exposed under wiredtiger.stat.session " %enddef @@ -1472,12 +1473,17 @@ class stat: '''keys for cursors on data source statistics''' pass + class session: + '''keys for cursors on session statistics''' + pass + ## @} import sys # All names starting with 'WT_STAT_DSRC_' are renamed to # the wiredtiger.stat.dsrc class, those starting with 'WT_STAT_CONN' are -# renamed to wiredtiger.stat.conn class. +# renamed to the wiredtiger.stat.conn class. All names starting with 'WT_STAT_SESSION' +# are renamed to the wiredtiger.stat.session class. def _rename_with_prefix(prefix, toclass): curmodule = sys.modules[__name__] for name in dir(curmodule): @@ -1488,5 +1494,6 @@ def _rename_with_prefix(prefix, toclass): _rename_with_prefix('WT_STAT_CONN_', stat.conn) _rename_with_prefix('WT_STAT_DSRC_', stat.dsrc) +_rename_with_prefix('WT_STAT_SESSION_', stat.session) del _rename_with_prefix %} |