diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2015-06-05 16:01:51 -0400 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-06-29 13:51:06 +1000 |
commit | a0c9c24db632dfed6df03f300375ea2a275898ef (patch) | |
tree | ea56d14c9b36b789ca6a84b698953dd58b33b3bf /dist | |
parent | 08779b412a1179c0b501843a2b1e660b0d096ab1 (diff) | |
download | mongo-a0c9c24db632dfed6df03f300375ea2a275898ef.tar.gz |
SERVER-17078 Add a "statistics=(size)" mode to statistics cursors that just gets the filesize without opening anything.
(cherry picked from commit 74cea8701c115b9327523691659ed68c86c1f652)
Diffstat (limited to 'dist')
-rw-r--r-- | dist/api_data.py | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/dist/api_data.py b/dist/api_data.py index 351067d7ba5..8dbb2f2ae55 100644 --- a/dist/api_data.py +++ b/dist/api_data.py @@ -715,22 +715,22 @@ methods = { type='boolean', undoc=True), Config('statistics', '', r''' Specify the statistics to be gathered. Choosing "all" gathers - statistics regardless of cost and may include traversing - on-disk files; "fast" gathers a subset of relatively - inexpensive statistics. The selection must agree with the - database \c statistics configuration specified to - ::wiredtiger_open or WT_CONNECTION::reconfigure. For example, - "all" or "fast" can be configured when the database is - configured with "all", but the cursor open will fail if "all" - is specified when the database is configured with "fast", - and the cursor open will fail in all cases when the database - is configured with "none". If \c statistics is not configured, - the default configuration is the database configuration. - The "clear" configuration resets statistics after gathering - them, where appropriate (for example, a cache size statistic - is not cleared, while the count of cursor insert operations - will be cleared). See @ref statistics for more information''', - type='list', choices=['all', 'fast', 'clear']), + statistics regardless of cost and may include traversing on-disk files; + "fast" gathers a subset of relatively inexpensive statistics. The + selection must agree with the database \c statistics configuration + specified to ::wiredtiger_open or WT_CONNECTION::reconfigure. For + example, "all" or "fast" can be configured when the database is + configured with "all", but the cursor open will fail if "all" is + specified when the database is configured with "fast", and the cursor + open will fail in all cases when the database is configured with + "none". If "size" is configured, only the underlying size of the + object on disk is filled in and the object is not opened. If \c + statistics is not configured, the default configuration is the database + configuration. The "clear" configuration resets statistics after + gathering them, where appropriate (for example, a cache size statistic + is not cleared, while the count of cursor insert operations will be + cleared). See @ref statistics for more information''', + type='list', choices=['all', 'fast', 'clear', 'size']), Config('target', '', r''' if non-empty, backup the list of objects; valid only for a backup data source''', |