diff options
author | Ian Boros <ian.boros@10gen.com> | 2018-10-09 12:22:08 -0400 |
---|---|---|
committer | Ian Boros <ian.boros@10gen.com> | 2018-11-06 11:24:25 -0500 |
commit | 36d4668e854d8bd17e8b684dbbf42b3b0903bbe7 (patch) | |
tree | 4815a0b5a9b712c5fb93f59e6a57d4cd6f0ae2f7 /src/mongo/db/commands/index_filter_commands_test.cpp | |
parent | a090ee789498e709eef4c2d28bc1326070c1e67a (diff) | |
download | mongo-36d4668e854d8bd17e8b684dbbf42b3b0903bbe7.tar.gz |
SERVER-33303 Add stable plan cache key and use for index filters
Diffstat (limited to 'src/mongo/db/commands/index_filter_commands_test.cpp')
-rw-r--r-- | src/mongo/db/commands/index_filter_commands_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/index_filter_commands_test.cpp b/src/mongo/db/commands/index_filter_commands_test.cpp index 7634481e091..3427eb1b8f7 100644 --- a/src/mongo/db/commands/index_filter_commands_test.cpp +++ b/src/mongo/db/commands/index_filter_commands_test.cpp @@ -459,7 +459,8 @@ TEST(IndexFilterCommandsTest, SetAndClearFiltersCollation) { ASSERT_EQUALS(StringData(filters[0].getObjectField("collation").getStringField("locale")), "mock_reverse_string"); - // Plan cache should only contain entry for query without collation. + // Setting a filter will remove the cache entry associated with the query so now the plan cache + // should only contain the entry for the query without collation. ASSERT_FALSE(planCacheContains( opCtx.get(), planCache, "{a: 'foo'}", "{}", "{}", "{locale: 'mock_reverse_string'}")); ASSERT_TRUE(planCacheContains(opCtx.get(), planCache, "{a: 'foo'}", "{}", "{}", "{}")); |