summaryrefslogtreecommitdiff
path: root/src/mongo/db/ttl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r--src/mongo/db/ttl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp
index 993af2e55bf..93be4678360 100644
--- a/src/mongo/db/ttl.cpp
+++ b/src/mongo/db/ttl.cpp
@@ -366,9 +366,9 @@ private:
const char* keyFieldName = key.firstElement().fieldName();
BSONObj query =
BSON(keyFieldName << BSON("$gte" << kDawnOfTime << "$lte" << expirationTime));
- auto qr = std::make_unique<QueryRequest>(collectionNSS);
- qr->setFilter(query);
- auto canonicalQuery = CanonicalQuery::canonicalize(opCtx, std::move(qr));
+ auto findCommand = std::make_unique<FindCommand>(collectionNSS);
+ findCommand->setFilter(query);
+ auto canonicalQuery = CanonicalQuery::canonicalize(opCtx, std::move(findCommand));
invariant(canonicalQuery.getStatus());
auto params = std::make_unique<DeleteStageParams>();