summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/rename_collection.cpp
diff options
context:
space:
mode:
authorMartin Bligh <mbligh@mongodb.com>2015-08-08 12:26:04 -0400
committerMartin Bligh <mbligh@mongodb.com>2015-08-08 12:26:39 -0400
commit68bd6567dbd5079de9a41c93296167ff4923bf9d (patch)
treec057728f2116aee48920320a5a2023d4929c789c /src/mongo/db/catalog/rename_collection.cpp
parentefcbdfee6ed54d4f23682340efd4818c3ba78690 (diff)
downloadmongo-68bd6567dbd5079de9a41c93296167ff4923bf9d.tar.gz
SERVER-19564: revert
Diffstat (limited to 'src/mongo/db/catalog/rename_collection.cpp')
-rw-r--r--src/mongo/db/catalog/rename_collection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/rename_collection.cpp b/src/mongo/db/catalog/rename_collection.cpp
index 6607f49e98f..f618b5e915a 100644
--- a/src/mongo/db/catalog/rename_collection.cpp
+++ b/src/mongo/db/catalog/rename_collection.cpp
@@ -211,7 +211,7 @@ Status renameCollection(OperationContext* txn,
// No logOp necessary because the entire renameCollection command is one logOp.
bool shouldReplicateWrites = txn->writesAreReplicated();
txn->setReplicatedWrites(false);
- Status status = targetColl->insertDocument(txn, obj, &indexer, true);
+ Status status = targetColl->insertDocument(txn, obj, &indexer, true).getStatus();
txn->setReplicatedWrites(shouldReplicateWrites);
if (!status.isOK())
return status;