diff options
author | Mathias Stearn <mathias@10gen.com> | 2016-07-01 19:18:45 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2016-08-01 11:35:17 -0400 |
commit | af042cfeda17768fa217207069880fbbcb0346ff (patch) | |
tree | 5b63613ee3f37524872788f3b51d3f2002be3d8e /src/mongo/db/concurrency/locker.h | |
parent | b0f766dfaf65fddf341e425b5a842ec27a5eff8f (diff) | |
download | mongo-af042cfeda17768fa217207069880fbbcb0346ff.tar.gz |
SERVER-24242 Lock::ParallelBatchWriterMode sets isBatchWriter while in scope
Diffstat (limited to 'src/mongo/db/concurrency/locker.h')
-rw-r--r-- | src/mongo/db/concurrency/locker.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/locker.h b/src/mongo/db/concurrency/locker.h index a858a5b0d79..2bd075ff2a3 100644 --- a/src/mongo/db/concurrency/locker.h +++ b/src/mongo/db/concurrency/locker.h @@ -302,7 +302,8 @@ public: */ virtual bool hasLockPending() const = 0; - // Used for the replication parallel log op application threads + // Used for the replication parallel oplog application threads to prevent any other threads from + // using the system while it is in an inconsistent state. virtual void setIsBatchWriter(bool newValue) = 0; virtual bool isBatchWriter() const = 0; |