diff options
author | Benety Goh <benety@mongodb.com> | 2018-03-02 13:04:56 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-03-02 13:05:16 -0500 |
commit | 522c306f159e4cd741068a20a3e82c7a8bcc26af (patch) | |
tree | e2dc2fe625d04c1140b78668d2436f4edf05e001 /src/mongo/db/ftdc | |
parent | 6618ad302577418504e9a1b7849bfa7d400d4c53 (diff) | |
download | mongo-522c306f159e4cd741068a20a3e82c7a8bcc26af.tar.gz |
SERVER-33563 add RAII-style class to opt out of replication's use of ParallelBatchWriterMode
Diffstat (limited to 'src/mongo/db/ftdc')
-rw-r--r-- | src/mongo/db/ftdc/collector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ftdc/collector.cpp b/src/mongo/db/ftdc/collector.cpp index c1e0c47158d..4f564c22192 100644 --- a/src/mongo/db/ftdc/collector.cpp +++ b/src/mongo/db/ftdc/collector.cpp @@ -66,7 +66,7 @@ std::tuple<BSONObj, Date_t> FTDCCollectorCollection::collect(Client* client) { // batches. This is desirable because we want to be able to collect data in the middle of // batches that are taking a long time. auto opCtx = client->makeOperationContext(); - opCtx->lockState()->setShouldConflictWithSecondaryBatchApplication(false); + ShouldNotConflictWithSecondaryBatchApplicationBlock shouldNotConflictBlock(opCtx->lockState()); opCtx->lockState()->setShouldAcquireTicket(false); for (auto& collector : _collectors) { |