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/query/query_settings.h | |
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/query/query_settings.h')
-rw-r--r-- | src/mongo/db/query/query_settings.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/query/query_settings.h b/src/mongo/db/query/query_settings.h index 48db5f7ed83..3e69a2ca55f 100644 --- a/src/mongo/db/query/query_settings.h +++ b/src/mongo/db/query/query_settings.h @@ -117,8 +117,7 @@ public: * Returns AllowedIndicesFilter for the query if it is set in the query settings, or * boost::none if it isn't. */ - boost::optional<AllowedIndicesFilter> getAllowedIndicesFilter( - const CanonicalQuery::QueryShapeString& query) const; + boost::optional<AllowedIndicesFilter> getAllowedIndicesFilter(const PlanCacheKey& query) const; /** * Returns copies of all overrides for the collection. @@ -130,13 +129,14 @@ public: * If existing entry is found for the same key, replaces it. */ void setAllowedIndices(const CanonicalQuery& canonicalQuery, + const PlanCacheKey& key, const BSONObjSet& indexKeyPatterns, const stdx::unordered_set<std::string>& indexNames); /** * Removes single entry from query settings. No effect if query shape is not found. */ - void removeAllowedIndices(const CanonicalQuery::QueryShapeString& canonicalQuery); + void removeAllowedIndices(const PlanCacheKey& canonicalQuery); /** * Clears all allowed indices from query settings. @@ -145,8 +145,7 @@ public: private: // Allowed index entries owned here. - using AllowedIndexEntryMap = - stdx::unordered_map<CanonicalQuery::QueryShapeString, AllowedIndexEntry>; + using AllowedIndexEntryMap = stdx::unordered_map<PlanCacheKey, AllowedIndexEntry>; AllowedIndexEntryMap _allowedIndexEntryMap; /** |