summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-06-05 16:01:51 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2015-06-29 13:51:06 +1000
commita0c9c24db632dfed6df03f300375ea2a275898ef (patch)
treeea56d14c9b36b789ca6a84b698953dd58b33b3bf /src/include
parent08779b412a1179c0b501843a2b1e660b0d096ab1 (diff)
downloadmongo-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 'src/include')
-rw-r--r--src/include/connection.h1
-rw-r--r--src/include/wiredtiger.in6
2 files changed, 5 insertions, 2 deletions
diff --git a/src/include/connection.h b/src/include/connection.h
index a95b051fbc0..47863091125 100644
--- a/src/include/connection.h
+++ b/src/include/connection.h
@@ -252,6 +252,7 @@ struct __wt_connection_impl {
#define WT_CONN_STAT_FAST 0x04 /* "fast" statistics configured */
#define WT_CONN_STAT_NONE 0x08 /* don't gather statistics */
#define WT_CONN_STAT_ON_CLOSE 0x10 /* output statistics on close */
+#define WT_CONN_STAT_SIZE 0x20 /* "size" statistics configured */
uint32_t stat_flags;
WT_CONNECTION_STATS stats; /* Connection statistics */
diff --git a/src/include/wiredtiger.in b/src/include/wiredtiger.in
index e50beac3bfe..3e7f956d885 100644
--- a/src/include/wiredtiger.in
+++ b/src/include/wiredtiger.in
@@ -945,14 +945,16 @@ struct __wt_session {
* 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
+ * 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., a list\, with
* values chosen from the following options: \c "all"\, \c "fast"\, \c
- * "clear"; default empty.}
+ * "clear"\, \c "size"; default empty.}
* @config{target, if non-empty\, backup the list of objects; valid only
* for a backup data source., a list of strings; default empty.}
* @configend