Skip to content

Commit

Permalink
SERVER-19189: Use vector instead of list for WT session cache
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbligh committed Jul 2, 2015
1 parent cad7211 commit 215dbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h
Expand Up @@ -152,7 +152,7 @@ class WiredTigerSessionCache {
AtomicUInt32 _shuttingDown; // Used as boolean - 0 = false, 1 = true

SpinLock _cacheLock;
typedef std::list<WiredTigerSession*> SessionCache;
typedef std::vector<WiredTigerSession*> SessionCache;
SessionCache _sessions;

// Bumped when all open sessions need to be closed
Expand Down

0 comments on commit 215dbca

Please sign in to comment.