From 7c3c0f3bcb487b16ff556d06a4fd66e0fb67de1c Mon Sep 17 00:00:00 2001 From: David Hatch Date: Wed, 1 Jun 2016 10:39:21 -0400 Subject: SERVER-24118 Rename LiteParsedQuery to QueryRequest. --- .../db/commands/index_filter_commands_test.cpp | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/mongo/db/commands/index_filter_commands_test.cpp') diff --git a/src/mongo/db/commands/index_filter_commands_test.cpp b/src/mongo/db/commands/index_filter_commands_test.cpp index 765871ac134..72c40a07083 100644 --- a/src/mongo/db/commands/index_filter_commands_test.cpp +++ b/src/mongo/db/commands/index_filter_commands_test.cpp @@ -119,12 +119,12 @@ void addQueryShapeToPlanCache(OperationContext* txn, const char* sortStr, const char* projectionStr) { // Create canonical query. - auto lpq = stdx::make_unique(nss); - lpq->setFilter(fromjson(queryStr)); - lpq->setSort(fromjson(sortStr)); - lpq->setProj(fromjson(projectionStr)); + auto qr = stdx::make_unique(nss); + qr->setFilter(fromjson(queryStr)); + qr->setSort(fromjson(sortStr)); + qr->setProj(fromjson(projectionStr)); auto statusWithCQ = - CanonicalQuery::canonicalize(txn, std::move(lpq), ExtensionsCallbackDisallowExtensions()); + CanonicalQuery::canonicalize(txn, std::move(qr), ExtensionsCallbackDisallowExtensions()); ASSERT_OK(statusWithCQ.getStatus()); std::unique_ptr cq = std::move(statusWithCQ.getValue()); @@ -147,12 +147,12 @@ bool planCacheContains(const PlanCache& planCache, auto txn = serviceContext.makeOperationContext(); // Create canonical query. - auto lpq = stdx::make_unique(nss); - lpq->setFilter(fromjson(queryStr)); - lpq->setSort(fromjson(sortStr)); - lpq->setProj(fromjson(projectionStr)); + auto qr = stdx::make_unique(nss); + qr->setFilter(fromjson(queryStr)); + qr->setSort(fromjson(sortStr)); + qr->setProj(fromjson(projectionStr)); auto statusWithInputQuery = CanonicalQuery::canonicalize( - txn.get(), std::move(lpq), ExtensionsCallbackDisallowExtensions()); + txn.get(), std::move(qr), ExtensionsCallbackDisallowExtensions()); ASSERT_OK(statusWithInputQuery.getStatus()); unique_ptr inputQuery = std::move(statusWithInputQuery.getValue()); @@ -167,12 +167,12 @@ bool planCacheContains(const PlanCache& planCache, // Canonicalizing query shape in cache entry to get cache key. // Alternatively, we could add key to PlanCacheEntry but that would be used in one place // only. - auto lpq = stdx::make_unique(nss); - lpq->setFilter(entry->query); - lpq->setSort(entry->sort); - lpq->setProj(entry->projection); + auto qr = stdx::make_unique(nss); + qr->setFilter(entry->query); + qr->setSort(entry->sort); + qr->setProj(entry->projection); auto statusWithCurrentQuery = CanonicalQuery::canonicalize( - txn.get(), std::move(lpq), ExtensionsCallbackDisallowExtensions()); + txn.get(), std::move(qr), ExtensionsCallbackDisallowExtensions()); ASSERT_OK(statusWithCurrentQuery.getStatus()); unique_ptr currentQuery = std::move(statusWithCurrentQuery.getValue()); -- cgit v1.2.1