Skip to content

Commit

Permalink
Merge pull request #2082 from wiredtiger/evict-thread-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcahill committed Jul 24, 2015
2 parents 74f60fb + d07823a commit 4938b8d
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/evict/evict_lru.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ __evict_server(void *arg)
WT_CACHE *cache;
WT_CONNECTION_IMPL *conn;
WT_DECL_RET;
WT_EVICT_WORKER *worker;
WT_SESSION_IMPL *session;

session = arg;
Expand All @@ -172,30 +171,6 @@ __evict_server(void *arg)
if (!F_ISSET(conn, WT_CONN_EVICTION_RUN))
break;

/*
* If we have caught up and there are more than the minimum
* number of eviction workers running, shut one down.
*/
if (conn->evict_workers > conn->evict_workers_min) {
WT_TRET(__wt_verbose(session, WT_VERB_EVICTSERVER,
"Stopping evict worker: %"PRIu32"\n",
conn->evict_workers));
worker = &conn->evict_workctx[--conn->evict_workers];
F_CLR(worker, WT_EVICT_WORKER_RUN);
WT_TRET(__wt_cond_signal(
session, cache->evict_waiter_cond));
WT_TRET(__wt_thread_join(session, worker->tid));
/*
* Flag errors here with a message, but don't shut down
* the eviction server - that's fatal.
*/
WT_ASSERT(session, ret == 0);
if (ret != 0) {
(void)__wt_msg(session,
"Error stopping eviction worker: %d", ret);
ret = 0;
}
}
/*
* Clear the walks so we don't pin pages while asleep,
* otherwise we can block applications evicting large pages.
Expand Down

0 comments on commit 4938b8d

Please sign in to comment.