diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-10-19 18:43:56 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-10-19 18:43:56 -0400 |
commit | 360fe8893d605113697578597be73c65fe95c92f (patch) | |
tree | fbb3ee930f84479ea0e570a78b3bf8b206929e59 /src/btree/bt_stat.c | |
parent | 3093604db9aacea8b6a05c77508c4b08c61af6b7 (diff) | |
download | mongo-360fe8893d605113697578597be73c65fe95c92f.tar.gz |
Better testing of the "fast" configuration, fix a bug, the btree code
wasn't looking at the cursor configuration when deciding whether or
not to return the expensive statistics.
Diffstat (limited to 'src/btree/bt_stat.c')
-rw-r--r-- | src/btree/bt_stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btree/bt_stat.c b/src/btree/bt_stat.c index 90b8a75fc2c..452266868f2 100644 --- a/src/btree/bt_stat.c +++ b/src/btree/bt_stat.c @@ -16,7 +16,7 @@ static int __stat_page_row_leaf(WT_PAGE *, WT_DSRC_STATS *); * Initialize the Btree statistics. */ int -__wt_btree_stat_init(WT_SESSION_IMPL *session) +__wt_btree_stat_init(WT_SESSION_IMPL *session, WT_CURSOR_STAT *cst) { WT_BM *bm; WT_BTREE *btree; @@ -38,7 +38,7 @@ __wt_btree_stat_init(WT_SESSION_IMPL *session) WT_STAT_SET(stats, btree_maxleafpage, btree->maxleafpage); /* Everything else is really, really expensive. */ - if (!S2C(session)->stat_all) + if (!cst->stat_all) return (0); page = NULL; |