diff options
author | Ramon Fernandez <ramon@mongodb.com> | 2017-10-12 07:15:30 -0400 |
---|---|---|
committer | Ramon Fernandez <ramon@mongodb.com> | 2017-10-12 07:15:30 -0400 |
commit | 96dfbfbb8cfc35640034b189ba58fef43751319e (patch) | |
tree | 0cee99a3dda7d150795449d3bb80f13d1db9c7fa /src/third_party/wiredtiger/src/include/cache.i | |
parent | 8205b768ca58b68b7aaf3b3b1c7a544f8d044d5a (diff) | |
download | mongo-96dfbfbb8cfc35640034b189ba58fef43751319e.tar.gz |
Import wiredtiger: 4b5ade6072d548fdebe3b376f94e0d672eea5359 from branch mongodb-3.6r3.6.0-rc0
ref: 0cd3d5bbd8..4b5ade6072
for: 3.5.14
WT-3644 Port to FreeBSD release 11.1
WT-3645 Build Failed: Lookaside file occupies 10MB of 11MB cache size
WT-3646 Only use lookaside when operations are blocked waiting for cache
WT-3649 Disable lookaside eviction during close
Diffstat (limited to 'src/third_party/wiredtiger/src/include/cache.i')
-rw-r--r-- | src/third_party/wiredtiger/src/include/cache.i | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/include/cache.i b/src/third_party/wiredtiger/src/include/cache.i index d8ecb9a91ad..d51e58e471b 100644 --- a/src/third_party/wiredtiger/src/include/cache.i +++ b/src/third_party/wiredtiger/src/include/cache.i @@ -79,6 +79,22 @@ __wt_cache_read_gen_new(WT_SESSION_IMPL *session, WT_PAGE *page) } /* + * __wt_cache_nearly_stuck -- + * Indicate if the cache is nearly stuck. + */ +static inline bool +__wt_cache_nearly_stuck(WT_SESSION_IMPL *session) +{ + WT_CACHE *cache; + + cache = S2C(session)->cache; + return (cache->evict_aggressive_score >= + (WT_EVICT_SCORE_MAX - WT_EVICT_SCORE_BUMP) && + F_ISSET(cache, + WT_CACHE_EVICT_CLEAN_HARD | WT_CACHE_EVICT_DIRTY_HARD)); +} + +/* * __wt_cache_stuck -- * Indicate if the cache is stuck (i.e., not making progress). */ |