diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-11-26 17:07:11 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-11-27 16:40:34 -0500 |
commit | fe363010e4b2b953c9876608861c02df4c8662ec (patch) | |
tree | 469b805d555a32b6f27c1fcee80739e89d15c039 /src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h | |
parent | d36eac67be457c8a4e11373b0332e2d8d54975e1 (diff) | |
download | mongo-fe363010e4b2b953c9876608861c02df4c8662ec.tar.gz |
SERVER-16119: faster WT shutdown race avoidance
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h b/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h index cfdb42b18f7..c245f86b1e6 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h @@ -111,11 +111,7 @@ namespace mongo { mutable boost::mutex _sessionLock; SessionPool _sessionPool; - // Regular operations take it in shared mode. Shutdown sets the _shuttingDown flag and - // then takes it in exclusive mode. This ensures that all threads, which would return - // sessions to the cache would leak them. - boost::shared_mutex _shutdownLock; - AtomicUInt32 _shuttingDown; // Used as boolean - 0 = false, 1 = true + bool _inShutdown; }; } |