summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_catalog.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2017-03-06 17:51:17 -0500
committerMatthew Russotto <matthew.russotto@10gen.com>2017-03-06 17:51:17 -0500
commit3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9 (patch)
tree33b65bce922be15c8aed1e423ea5a3061ad1ff2b /src/mongo/db/catalog/index_catalog.cpp
parentb078623660b1f4582cbb90998f8e6c252d3bd7b8 (diff)
downloadmongo-3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9.tar.gz
Revert "SERVER-26965 Use RAII type for turning off replicated writes."
This reverts commit befb3ab22daa1f6e0db54af4caa426cfca1b7cd2.
Diffstat (limited to 'src/mongo/db/catalog/index_catalog.cpp')
-rw-r--r--src/mongo/db/catalog/index_catalog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/index_catalog.cpp b/src/mongo/db/catalog/index_catalog.cpp
index a34baf61c28..ffbfea515fd 100644
--- a/src/mongo/db/catalog/index_catalog.cpp
+++ b/src/mongo/db/catalog/index_catalog.cpp
@@ -1369,7 +1369,7 @@ void IndexCatalog::prepareInsertDeleteOptions(OperationContext* txn,
const IndexDescriptor* desc,
InsertDeleteOptions* options) {
auto replCoord = repl::ReplicationCoordinator::get(txn);
- if (replCoord->shouldRelaxIndexConstraints(txn, NamespaceString(desc->parentNS()))) {
+ if (replCoord->shouldRelaxIndexConstraints(NamespaceString(desc->parentNS()))) {
options->getKeysMode = IndexAccessMethod::GetKeysMode::kRelaxConstraints;
} else {
options->getKeysMode = IndexAccessMethod::GetKeysMode::kEnforceConstraints;