summaryrefslogtreecommitdiff
path: root/src/mongo/db/cloner.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-11-20 14:36:38 -0500
committerAndy Schwerin <schwerin@mongodb.com>2015-12-09 13:53:25 -0500
commitdc9993d8df8f6fd38a46549af0ba89564b11328c (patch)
tree9d5d3db30214abc9d83579269c9913798251d2d2 /src/mongo/db/cloner.cpp
parenta4d29291cc3ee4d44970fc450e0a7124828394b2 (diff)
downloadmongo-dc9993d8df8f6fd38a46549af0ba89564b11328c.tar.gz
SERVER-21382 Remove unused _id-extracting out parameter from Collection::deleteDocument
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r--src/mongo/db/cloner.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp
index 2d483b55715..b3b128b89ab 100644
--- a/src/mongo/db/cloner.cpp
+++ b/src/mongo/db/cloner.cpp
@@ -659,10 +659,7 @@ Status Cloner::copyDb(OperationContext* txn,
// dupsAllowed in IndexCatalog::_unindexRecord and SERVER-17487.
for (set<RecordId>::const_iterator it = dups.begin(); it != dups.end(); ++it) {
WriteUnitOfWork wunit(txn);
- BSONObj id;
-
- c->deleteDocument(
- txn, *it, true, true, txn->writesAreReplicated() ? &id : nullptr);
+ c->deleteDocument(txn, *it, true, true);
wunit.commit();
}