summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/delete.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-08-12 16:18:57 -0400
committerRandolph Tan <randolph@10gen.com>2014-08-19 10:14:48 -0400
commitfe11098d32f0e002349fd2513834f6c8928fe550 (patch)
treeac7fb98c7c50742a401483e8f14c1aa7874cb5e9 /src/mongo/db/ops/delete.cpp
parent1c5ba979202d53a35242c941e40bfc2b4f171bf3 (diff)
downloadmongo-fe11098d32f0e002349fd2513834f6c8928fe550.tar.gz
SERVER-14657 use RangeDeleter for all migration cleanup in d_migrate.cpp
Remove last use of Helpers::removeRange in d_migrate.cpp
Diffstat (limited to 'src/mongo/db/ops/delete.cpp')
-rw-r--r--src/mongo/db/ops/delete.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/ops/delete.cpp b/src/mongo/db/ops/delete.cpp
index 38b1b2aefe3..bd50b671a14 100644
--- a/src/mongo/db/ops/delete.cpp
+++ b/src/mongo/db/ops/delete.cpp
@@ -44,13 +44,15 @@ namespace mongo {
BSONObj pattern,
bool justOne,
bool logop,
- bool god) {
+ bool god,
+ bool fromMigrate) {
NamespaceString nsString(ns);
DeleteRequest request(txn, nsString);
request.setQuery(pattern);
request.setMulti(!justOne);
request.setUpdateOpLog(logop);
request.setGod(god);
+ request.setFromMigrate(fromMigrate);
DeleteExecutor executor(&request);
return executor.execute(db);
}