diff options
author | David Hows <howsdav@gmail.com> | 2017-07-19 17:37:59 +1000 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2017-09-07 08:50:54 +1000 |
commit | 3579adf6c8b96d26898af9fe3cc5eb9677f75632 (patch) | |
tree | 4ee549a85fdef5cb7e4a9f10c35ab99074164350 | |
parent | 3166629c1d7461e329ba88f358aaa7f3d1dc0b5d (diff) | |
download | mongo-3579adf6c8b96d26898af9fe3cc5eb9677f75632.tar.gz |
WT-3438 Don't tune eviction thread count when the count is fixed (#3519)
(cherry picked from commit 6173a98979715ed727c432c1a31da64ea8a37048)
Signed-off-by: Alex Gorrod <alexander.gorrod@mongodb.com>
-rw-r--r-- | src/evict/evict_lru.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c index 26bbf9f679b..cc3c5a5c824 100644 --- a/src/evict/evict_lru.c +++ b/src/evict/evict_lru.c @@ -941,6 +941,13 @@ __evict_tune_workers(WT_SESSION_IMPL *session) conn = S2C(session); cache = conn->cache; + /* + * If we have a fixed number of eviction threads, there is no value in + * calculating if we should do any tuning. + */ + if (conn->evict_threads_max == conn->evict_threads_min) + return (0); + WT_ASSERT(session, conn->evict_threads.threads[0]->session == session); pgs_evicted_cur = pgs_evicted_persec_cur = 0; |