summaryrefslogtreecommitdiff
path: root/src/bloom/bloom.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-11-05 10:30:55 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-11-05 10:30:55 +1100
commit61e5b885a235f6b96f10cdb3a4e16afa751c3aff (patch)
treef2ba419d5b0bb504c6e01292badd466e46c130f0 /src/bloom/bloom.c
parentf347a3301d19956d7937793a9c7c75d0c746850d (diff)
downloadmongo-61e5b885a235f6b96f10cdb3a4e16afa751c3aff.tar.gz
Add a per-btree cache priority, currently only used for Bloom filters.
Diffstat (limited to 'src/bloom/bloom.c')
-rw-r--r--src/bloom/bloom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bloom/bloom.c b/src/bloom/bloom.c
index 819afa246e9..796461230b7 100644
--- a/src/bloom/bloom.c
+++ b/src/bloom/bloom.c
@@ -124,6 +124,10 @@ __wt_bloom_open(WT_SESSION_IMPL *session,
/* Find the largest key, to get the size of the filter. */
cfg[1] = bloom->config;
WT_RET(__wt_open_cursor(session, bloom->uri, owner, cfg, &c));
+
+ /* XXX Layering violation: bump the cache priority for Bloom filters. */
+ session->btree->evict_priority = (1 << 19);
+
WT_RET(c->prev(c));
WT_RET(c->get_key(c, &size));