diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2012-10-15 19:16:39 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2012-10-15 19:16:39 +1100 |
commit | cafe348770fab4486edb683e80f47712396cb362 (patch) | |
tree | 7f96493039bd921849d4783850f89dfa9c15b746 /src/lsm | |
parent | 9f77bdb12a0a9a51856b52e2225daa80db43709e (diff) | |
download | mongo-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.c | 12 |
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; |