summaryrefslogtreecommitdiff
path: root/src/conn/conn_cache_pool.c
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2016-06-20 08:47:53 -0400
committerGitHub <noreply@github.com>2016-06-20 08:47:53 -0400
commit73458e6d3b267df9ec8078949ba89ecf8056828e (patch)
tree6c11dab0035141d894c97c2ff6956233f221631f /src/conn/conn_cache_pool.c
parentf18d9758cda5d796a9439dee0ccd202c34c4a0cf (diff)
downloadmongo-73458e6d3b267df9ec8078949ba89ecf8056828e.tar.gz
WT-2709 connection reconfigure segfault in __wt_conn_cache_pool_destroy (#2811)
Clear the WT_CONN_CACHE_POOL flag when the shared cache is destroyed so reconfigure won't try and destroy it more than once.
Diffstat (limited to 'src/conn/conn_cache_pool.c')
-rw-r--r--src/conn/conn_cache_pool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conn/conn_cache_pool.c b/src/conn/conn_cache_pool.c
index 898bd09ece9..75ecb6b3b4a 100644
--- a/src/conn/conn_cache_pool.c
+++ b/src/conn/conn_cache_pool.c
@@ -309,6 +309,7 @@ __wt_conn_cache_pool_destroy(WT_SESSION_IMPL *session)
if (!F_ISSET(conn, WT_CONN_CACHE_POOL))
return (0);
+ F_CLR(conn, WT_CONN_CACHE_POOL);
__wt_spin_lock(session, &cp->cache_pool_lock);
cp_locked = true;