From 3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9 Mon Sep 17 00:00:00 2001 From: Matthew Russotto Date: Mon, 6 Mar 2017 17:51:17 -0500 Subject: Revert "SERVER-26965 Use RAII type for turning off replicated writes." This reverts commit befb3ab22daa1f6e0db54af4caa426cfca1b7cd2. --- src/mongo/db/catalog/drop_indexes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/catalog/drop_indexes.cpp') diff --git a/src/mongo/db/catalog/drop_indexes.cpp b/src/mongo/db/catalog/drop_indexes.cpp index 78739b6e4da..a0bb7a22e0d 100644 --- a/src/mongo/db/catalog/drop_indexes.cpp +++ b/src/mongo/db/catalog/drop_indexes.cpp @@ -152,7 +152,7 @@ Status dropIndexes(OperationContext* txn, AutoGetDb autoDb(txn, dbName, MODE_X); bool userInitiatedWritesAndNotPrimary = txn->writesAreReplicated() && - !repl::getGlobalReplicationCoordinator()->canAcceptWritesFor(txn, nss); + !repl::getGlobalReplicationCoordinator()->canAcceptWritesFor(nss); if (userInitiatedWritesAndNotPrimary) { return {ErrorCodes::NotMaster, -- cgit v1.2.1