diff options
author | Martin Bligh <mbligh@mongodb.com> | 2015-08-08 12:26:04 -0400 |
---|---|---|
committer | Martin Bligh <mbligh@mongodb.com> | 2015-08-08 12:26:39 -0400 |
commit | 68bd6567dbd5079de9a41c93296167ff4923bf9d (patch) | |
tree | c057728f2116aee48920320a5a2023d4929c789c /src/mongo/db/catalog/rename_collection.cpp | |
parent | efcbdfee6ed54d4f23682340efd4818c3ba78690 (diff) | |
download | mongo-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.cpp | 2 |
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; |