summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/parsed_delete.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/parsed_delete.cpp')
-rw-r--r--src/mongo/db/ops/parsed_delete.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/ops/parsed_delete.cpp b/src/mongo/db/ops/parsed_delete.cpp
index 0837f51addc..5028ccde159 100644
--- a/src/mongo/db/ops/parsed_delete.cpp
+++ b/src/mongo/db/ops/parsed_delete.cpp
@@ -90,7 +90,7 @@ Status ParsedDelete::parseQueryToCQ() {
// The projection needs to be applied after the delete operation, so we do not specify a
// projection during canonicalization.
- auto findCommand = std::make_unique<FindCommand>(_request->getNsString());
+ auto findCommand = std::make_unique<FindCommandRequest>(_request->getNsString());
findCommand->setFilter(_request->getQuery().getOwned());
findCommand->setSort(_request->getSort().getOwned());
findCommand->setCollation(_request->getCollation().getOwned());
@@ -107,7 +107,7 @@ Status ParsedDelete::parseQueryToCQ() {
}
// If the delete request has runtime constants or let parameters attached to it, pass them to
- // the FindCommand.
+ // the FindCommandRequest.
if (auto& runtimeConstants = _request->getLegacyRuntimeConstants())
findCommand->setLegacyRuntimeConstants(*runtimeConstants);
if (auto& letParams = _request->getLet())