summaryrefslogtreecommitdiff
path: root/src/include/cache.i
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-08-07 08:49:20 -0400
committerKeith Bostic <keith@wiredtiger.com>2015-08-07 08:49:20 -0400
commit7746075b6834a786d2d87a4ce040eb9fad5efcfa (patch)
tree4db8ecb9260892ad96d93db78e711cf5af2e1623 /src/include/cache.i
parent7a4ab8389501ea784ef0b72d6d52550c6925e66c (diff)
downloadmongo-7746075b6834a786d2d87a4ce040eb9fad5efcfa.tar.gz
Revert a debugging change that got committed in f627304, we don't
normally want aggressive eviction turned on all the time.
Diffstat (limited to 'src/include/cache.i')
-rw-r--r--src/include/cache.i3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/cache.i b/src/include/cache.i
index da1461c86f6..051b717b496 100644
--- a/src/include/cache.i
+++ b/src/include/cache.i
@@ -137,7 +137,8 @@ __wt_session_can_wait(WT_SESSION_IMPL *session)
static inline int
__wt_eviction_aggressive(WT_SESSION_IMPL *session)
{
- return (1);
+ return (FLD_ISSET(
+ S2C(session)->cache->state, WT_EVICT_PASS_AGGRESSIVE) ? 1 : 0);
}
/*