diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-11-20 14:36:38 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-12-09 13:53:25 -0500 |
commit | dc9993d8df8f6fd38a46549af0ba89564b11328c (patch) | |
tree | 9d5d3db30214abc9d83579269c9913798251d2d2 /src/mongo/db/cloner.cpp | |
parent | a4d29291cc3ee4d44970fc450e0a7124828394b2 (diff) | |
download | mongo-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.cpp | 5 |
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(); } |