summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-06-23 16:29:47 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2016-06-23 16:29:47 +1000
commit9ee39b8aea2812efd1d07a5d818ed27a105c6fbe (patch)
tree4909d05b482a5fd6f0d33cb4457a8edaed98a9e9
parentd68800d0e9b95f2ba83d68ff7d3291603fea7b16 (diff)
downloadmongo-9ee39b8aea2812efd1d07a5d818ed27a105c6fbe.tar.gz
SERVER-24580 Fix backport.
-rw-r--r--src/evict/evict_lru.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c
index 45efbd3350e..a2bf1d77dd0 100644
--- a/src/evict/evict_lru.c
+++ b/src/evict/evict_lru.c
@@ -1464,10 +1464,8 @@ __evict_get_ref(
return (WT_NOTFOUND);
if (__wt_spin_trylock(session, &cache->evict_lock) == 0)
break;
- if (!F_ISSET(session, WT_SESSION_INTERNAL)) {
- __wt_spin_unlock(session, &cache->evict_queue_lock);
+ if (!F_ISSET(session, WT_SESSION_INTERNAL))
return (WT_NOTFOUND);
- }
__wt_yield();
}