diff options
author | Alexander Ignatyev <alexander.ignatyev@mongodb.com> | 2021-09-17 17:08:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-17 18:03:55 +0000 |
commit | d22a8b46abe0bcdbcbe1c84b0e22f6b2c9dc1d87 (patch) | |
tree | dc77dbb35fabeb889137424fe394e3debb4db35c /src/mongo/db/commands/plan_cache_commands_test.cpp | |
parent | ed888257db60e851557a2e2bf6c602e39f7dc849 (diff) | |
download | mongo-d22a8b46abe0bcdbcbe1c84b0e22f6b2c9dc1d87.tar.gz |
SERVER-59683 Extract BudgetEstimator logic from LRU cache
Diffstat (limited to 'src/mongo/db/commands/plan_cache_commands_test.cpp')
-rw-r--r-- | src/mongo/db/commands/plan_cache_commands_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/commands/plan_cache_commands_test.cpp b/src/mongo/db/commands/plan_cache_commands_test.cpp index 3764382a414..707a7329969 100644 --- a/src/mongo/db/commands/plan_cache_commands_test.cpp +++ b/src/mongo/db/commands/plan_cache_commands_test.cpp @@ -85,7 +85,7 @@ TEST(PlanCacheCommandsTest, CannotCanonicalizeWhenSortObjectIsMalformed) { } TEST(PlanCacheCommandsTest, CanCanonicalizeWithValidQuery) { - PlanCache planCache; + PlanCache planCache(5000); QueryTestServiceContext serviceContext; auto opCtx = serviceContext.makeOperationContext(); @@ -103,7 +103,7 @@ TEST(PlanCacheCommandsTest, CanCanonicalizeWithValidQuery) { } TEST(PlanCacheCommandsTest, SortQueryResultsInDifferentPlanCacheKeyFromUnsorted) { - PlanCache planCache; + PlanCache planCache(5000); QueryTestServiceContext serviceContext; auto opCtx = serviceContext.makeOperationContext(); @@ -122,7 +122,7 @@ TEST(PlanCacheCommandsTest, SortQueryResultsInDifferentPlanCacheKeyFromUnsorted) // Regression test for SERVER-17158. TEST(PlanCacheCommandsTest, SortsAreProperlyDelimitedInPlanCacheKey) { - PlanCache planCache; + PlanCache planCache(5000); QueryTestServiceContext serviceContext; auto opCtx = serviceContext.makeOperationContext(); @@ -140,7 +140,7 @@ TEST(PlanCacheCommandsTest, SortsAreProperlyDelimitedInPlanCacheKey) { } TEST(PlanCacheCommandsTest, ProjectQueryResultsInDifferentPlanCacheKeyFromUnprojected) { - PlanCache planCache; + PlanCache planCache(5000); QueryTestServiceContext serviceContext; auto opCtx = serviceContext.makeOperationContext(); |