summaryrefslogtreecommitdiff
path: root/src/mongo/db/ftdc
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-03-02 13:04:56 -0500
committerBenety Goh <benety@mongodb.com>2018-03-02 13:05:16 -0500
commit522c306f159e4cd741068a20a3e82c7a8bcc26af (patch)
treee2dc2fe625d04c1140b78668d2436f4edf05e001 /src/mongo/db/ftdc
parent6618ad302577418504e9a1b7849bfa7d400d4c53 (diff)
downloadmongo-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.cpp2
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) {