summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk_manager_index_bounds_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/chunk_manager_index_bounds_test.cpp')
-rw-r--r--src/mongo/s/chunk_manager_index_bounds_test.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/s/chunk_manager_index_bounds_test.cpp b/src/mongo/s/chunk_manager_index_bounds_test.cpp
index 8b8c490fd92..611c50fe13f 100644
--- a/src/mongo/s/chunk_manager_index_bounds_test.cpp
+++ b/src/mongo/s/chunk_manager_index_bounds_test.cpp
@@ -56,13 +56,14 @@ protected:
std::unique_ptr<CanonicalQuery> canonicalize(const char* queryStr) {
BSONObj queryObj = fromjson(queryStr);
const NamespaceString nss("test.foo");
- auto qr = std::make_unique<QueryRequest>(nss);
- qr->setFilter(queryObj);
+ auto findCommand = std::make_unique<FindCommand>(nss);
+ findCommand->setFilter(queryObj);
boost::intrusive_ptr<ExpressionContextForTest> expCtx(
new ExpressionContextForTest(operationContext()));
auto statusWithCQ =
CanonicalQuery::canonicalize(operationContext(),
- std::move(qr),
+ std::move(findCommand),
+ false,
expCtx,
ExtensionsCallbackNoop(),
MatchExpressionParser::kAllowAllSpecialFeatures);