diff options
author | Ian Boros <ian.boros@10gen.com> | 2018-11-06 13:12:14 -0500 |
---|---|---|
committer | Ian Boros <ian.boros@10gen.com> | 2018-11-06 13:12:14 -0500 |
commit | 84df94224aa86213250fa7e5e8d3a1ca6a71ac1b (patch) | |
tree | b9539360704181b98492c5e28a7b372a18c97212 /src/mongo/db/commands/index_filter_commands.cpp | |
parent | c0f43e12c3cb6382421b9d08d12adcae12dfcbe5 (diff) | |
download | mongo-84df94224aa86213250fa7e5e8d3a1ca6a71ac1b.tar.gz |
Revert "SERVER-33303 Add stable plan cache key and use for index filters"
This reverts commit 36d4668e854d8bd17e8b684dbbf42b3b0903bbe7.
Diffstat (limited to 'src/mongo/db/commands/index_filter_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/index_filter_commands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/index_filter_commands.cpp b/src/mongo/db/commands/index_filter_commands.cpp index f23760a4631..c9aec6823f9 100644 --- a/src/mongo/db/commands/index_filter_commands.cpp +++ b/src/mongo/db/commands/index_filter_commands.cpp @@ -262,7 +262,7 @@ Status ClearFilters::clear(OperationContext* opCtx, } unique_ptr<CanonicalQuery> cq = std::move(statusWithCQ.getValue()); - querySettings->removeAllowedIndices(cq->encodeKey()); + querySettings->removeAllowedIndices(planCache->computeKey(*cq)); // Remove entry from plan cache planCache->remove(*cq).transitional_ignore(); @@ -395,7 +395,7 @@ Status SetFilter::set(OperationContext* opCtx, unique_ptr<CanonicalQuery> cq = std::move(statusWithCQ.getValue()); // Add allowed indices to query settings, overriding any previous entries. - querySettings->setAllowedIndices(*cq, indexes, indexNames); + querySettings->setAllowedIndices(*cq, planCache->computeKey(*cq), indexes, indexNames); // Remove entry from plan cache. planCache->remove(*cq).transitional_ignore(); |