diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-04-14 18:13:08 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2015-06-29 19:23:15 -0400 |
commit | 28be53c1c9721c4ef8a3046bb3546a1b63e759f6 (patch) | |
tree | bdfd20f4ef40f02ebbd6ad307fc04e201316f8ca /src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h | |
parent | d7f068a0fb33b2c85d7909e03edbe65a25b2f8e0 (diff) | |
download | mongo-28be53c1c9721c4ef8a3046bb3546a1b63e759f6.tar.gz |
SERVER-18022 Read Majority Committed implementation for primary nodes
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h b/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h index cf3ce29bbe5..9760e6e48f9 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.h @@ -37,8 +37,9 @@ #include <boost/thread/shared_mutex.hpp> #include <wiredtiger.h> -#include "mongo/stdx/mutex.h" +#include "mongo/db/storage/wiredtiger/wiredtiger_snapshot_manager.h" #include "mongo/platform/atomic_word.h" +#include "mongo/stdx/mutex.h" #include "mongo/util/concurrency/spin_lock.h" namespace mongo { @@ -132,9 +133,17 @@ public: return _conn; } + WiredTigerSnapshotManager& snapshotManager() { + return _snapshotManager; + } + const WiredTigerSnapshotManager& snapshotManager() const { + return _snapshotManager; + } + private: WiredTigerKVEngine* _engine; // not owned, might be NULL WT_CONNECTION* _conn; // not owned + WiredTigerSnapshotManager _snapshotManager; // 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 |