diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2015-09-17 16:33:51 -0400 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2015-09-22 07:53:20 -0400 |
commit | 87a5a53a3b3e6d6d30657a846434811da8ecee6c (patch) | |
tree | c36dbedd6b3ef41222c68bf8c1319a68473f3b28 /src/mongo/db/repl/snapshot_thread.h | |
parent | 578eba8c80615f525147d27e7f4317b000d37da7 (diff) | |
download | mongo-87a5a53a3b3e6d6d30657a846434811da8ecee6c.tar.gz |
SERVER-20161: move snapshot notification to capped collection notifier
Diffstat (limited to 'src/mongo/db/repl/snapshot_thread.h')
-rw-r--r-- | src/mongo/db/repl/snapshot_thread.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/repl/snapshot_thread.h b/src/mongo/db/repl/snapshot_thread.h index 81bf2212f52..1cbdf42e5fe 100644 --- a/src/mongo/db/repl/snapshot_thread.h +++ b/src/mongo/db/repl/snapshot_thread.h @@ -29,6 +29,7 @@ #pragma once #include "mongo/base/disallow_copying.h" +#include "mongo/db/catalog/collection.h" #include "mongo/db/service_context.h" #include "mongo/db/storage/snapshot_manager.h" #include "mongo/stdx/functional.h" @@ -72,9 +73,11 @@ private: void run(); SnapshotManager* const _manager; - bool _inShutdown = false; // guarded by newOpMutex in oplog.cpp. - bool _forcedSnapshotPending = false; // guarded by newOpMutex in oplog.cpp. + bool _inShutdown = false; // guarded by _mutex. + bool _forcedSnapshotPending = false; // guarded by _mutex. + std::shared_ptr<CappedInsertNotifier> _notifier; stdx::thread _thread; + stdx::mutex _mutex; }; } // namespace repl |