summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/delete.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-05-01 21:47:12 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-05-04 17:54:10 -0400
commitef53c2435ea7b041fb06ed30ff3baf0ab8c30466 (patch)
tree028f54200fd61fc97d8f4447013c6f8f0d3b3016 /src/mongo/db/ops/delete.cpp
parent8fe31447b9d21521aa8022a24b4b1c27747c2ba5 (diff)
downloadmongo-ef53c2435ea7b041fb06ed30ff3baf0ab8c30466.tar.gz
SERVER-13797 Remove more usages of Client::getContext
This change removes additional usages of Client::getContext and replaces them with passing the database directly.
Diffstat (limited to 'src/mongo/db/ops/delete.cpp')
-rw-r--r--src/mongo/db/ops/delete.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/ops/delete.cpp b/src/mongo/db/ops/delete.cpp
index 9401fc908a3..1e28a895855 100644
--- a/src/mongo/db/ops/delete.cpp
+++ b/src/mongo/db/ops/delete.cpp
@@ -39,6 +39,7 @@ namespace mongo {
god: allow access to system namespaces, and don't yield
*/
long long deleteObjects(TransactionExperiment* txn,
+ Database* db,
const StringData& ns,
BSONObj pattern,
bool justOne,
@@ -51,7 +52,7 @@ namespace mongo {
request.setUpdateOpLog(logop);
request.setGod(god);
DeleteExecutor executor(&request);
- return executor.execute(txn);
+ return executor.execute(txn, db);
}
} // namespace mongo