summaryrefslogtreecommitdiff
path: root/src/lsm
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2012-10-15 19:16:39 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2012-10-15 19:16:39 +1100
commitcafe348770fab4486edb683e80f47712396cb362 (patch)
tree7f96493039bd921849d4783850f89dfa9c15b746 /src/lsm
parent9f77bdb12a0a9a51856b52e2225daa80db43709e (diff)
downloadmongo-cafe348770fab4486edb683e80f47712396cb362.tar.gz
Update bloom statistics naming to be clearer.
Add a new LSM statistic tracking searches that could benefit from bloom filters.
Diffstat (limited to 'src/lsm')
-rw-r--r--src/lsm/lsm_cursor.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lsm/lsm_cursor.c b/src/lsm/lsm_cursor.c
index 35226370025..5b07a29ccd9 100644
--- a/src/lsm/lsm_cursor.c
+++ b/src/lsm/lsm_cursor.c
@@ -516,7 +516,7 @@ __clsm_search(WT_CURSOR *cursor)
ret = __wt_bloom_get(bloom, &cursor->key);
if (ret == WT_NOTFOUND) {
WT_STAT_INCR(
- clsm->lsm_tree->stats, bloom_skips);
+ clsm->lsm_tree->stats, bloom_misses);
continue;
} else if (ret == 0)
WT_STAT_INCR(clsm->lsm_tree->stats, bloom_hits);
@@ -532,9 +532,13 @@ __clsm_search(WT_CURSOR *cursor)
goto done;
} else if (ret != WT_NOTFOUND)
goto err;
- else if (bloom != NULL) {
- WT_STAT_INCR(clsm->lsm_tree->stats, bloom_misses);
- }
+ else if (bloom != NULL)
+ WT_STAT_INCR(
+ clsm->lsm_tree->stats, bloom_false_positives);
+ /* The active chunk can't have a bloom filter. */
+ else if (i != clsm->nchunks)
+ WT_STAT_INCR(
+ clsm->lsm_tree->stats, search_miss_no_bloom);
}
ret = WT_NOTFOUND;