diff options
author | Don Anderson <dda@ddanderson.com> | 2015-11-17 10:34:11 -0500 |
---|---|---|
committer | Don Anderson <dda@ddanderson.com> | 2015-11-17 10:34:11 -0500 |
commit | a22cde620d799e8019a72c427ba5b2b8e2e39489 (patch) | |
tree | 5fe06ed5b285006149cca41e0a9da1f4565192d7 /src/include/wiredtiger.in | |
parent | 1d26b39e4f65f5c2076cbdd9cfa21f237e0d0947 (diff) | |
download | mongo-a22cde620d799e8019a72c427ba5b2b8e2e39489.tar.gz |
WT-1315. Support statistics on join cursors.
Statistics for these are a bit different than for a data source or a
connection:
1) The statistics are simple (currently only 3), but range over sets of
indices, so traversing the stats is a two level operation. Added a private
callback API to advance to the next index when the stats have been
exhausted.
2) cursors are used as single threaded operations, so arrays of stats is to
avoid thread conflicts is not needed.
Minor change: the stats_desc callback changed to return an int, and added
an arg to provide some context. In the join cursor case, the returned desc
is not a static string, it needs to be created and managed.
Diffstat (limited to 'src/include/wiredtiger.in')
-rw-r--r-- | src/include/wiredtiger.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/wiredtiger.in b/src/include/wiredtiger.in index 23e6e183e43..3b84c128982 100644 --- a/src/include/wiredtiger.in +++ b/src/include/wiredtiger.in @@ -4185,6 +4185,19 @@ extern int wiredtiger_extension_terminate(WT_CONNECTION *connection); #define WT_STAT_DSRC_SESSION_CURSOR_OPEN 2094 /*! transaction: update conflicts */ #define WT_STAT_DSRC_TXN_UPDATE_CONFLICT 2095 + +/*! + * @} + * @name Statistics for join cursors + * @anchor statistics_join + * @{ + */ +/*! : accesses */ +#define WT_STAT_JOIN_ACCESSES 3000 +/*! : actual count of items */ +#define WT_STAT_JOIN_ACTUAL_COUNT 3001 +/*! : bloom filter false positives */ +#define WT_STAT_JOIN_BLOOM_FALSE_POSITIVE 3002 /*! @} */ /* * Statistics section: END |