summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/query/plan_cache_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/query/plan_cache_test.cpp b/src/mongo/db/query/plan_cache_test.cpp
index 492de787fda..b127fec8b64 100644
--- a/src/mongo/db/query/plan_cache_test.cpp
+++ b/src/mongo/db/query/plan_cache_test.cpp
@@ -430,7 +430,8 @@ namespace {
// With sort
testGetPlanCacheKey("{}", "{a: 1}", "{}", "anaa");
testGetPlanCacheKey("{}", "{a: -1}", "{}", "anda");
- testGetPlanCacheKey("{}", "{a: {$meta: 'textScore'}}", "{}", "anta");
+ testGetPlanCacheKey("{}", "{a: {$meta: 'textScore'}}", "{a: {$meta: 'textScore'}}",
+ "antap{ $meta: \"textScore\" }a");
// With projection
testGetPlanCacheKey("{}", "{}", "{a: 1}", "anp1a");
testGetPlanCacheKey("{}", "{}", "{a: 0}", "anp0a");