diff options
Diffstat (limited to 'src/mongo/dbtests/query_stage_delete.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_delete.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/query_stage_delete.cpp b/src/mongo/dbtests/query_stage_delete.cpp index 03b7834e079..93fbd082916 100644 --- a/src/mongo/dbtests/query_stage_delete.cpp +++ b/src/mongo/dbtests/query_stage_delete.cpp @@ -104,9 +104,9 @@ public: } unique_ptr<CanonicalQuery> canonicalize(const BSONObj& query) { - auto qr = std::make_unique<QueryRequest>(nss); - qr->setFilter(query); - auto statusWithCQ = CanonicalQuery::canonicalize(&_opCtx, std::move(qr)); + auto findCommand = std::make_unique<FindCommand>(nss); + findCommand->setFilter(query); + auto statusWithCQ = CanonicalQuery::canonicalize(&_opCtx, std::move(findCommand)); ASSERT_OK(statusWithCQ.getStatus()); return std::move(statusWithCQ.getValue()); } |