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 17:45:50 -0500 |
commit | 50630d5c4ea5f731bdfd95b2dab5ab4e9620fd10 (patch) | |
tree | c5ff2b837dd7c6de8ccd606434363ad4454b0e3a /src/mongo/db/query/lru_key_value.h | |
parent | 5738e29558432727846902dde7fd257aee36deec (diff) | |
download | mongo-50630d5c4ea5f731bdfd95b2dab5ab4e9620fd10.tar.gz |
SERVER-33303 Add stable plan cache key and use for index filters
Diffstat (limited to 'src/mongo/db/query/lru_key_value.h')
-rw-r--r-- | src/mongo/db/query/lru_key_value.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/lru_key_value.h b/src/mongo/db/query/lru_key_value.h index 524b87c6fc0..e803fec336e 100644 --- a/src/mongo/db/query/lru_key_value.h +++ b/src/mongo/db/query/lru_key_value.h @@ -58,7 +58,7 @@ namespace mongo { * TODO: We could move this into the util/ directory and do any cleanup necessary to make it * fully general. */ -template <class K, class V> +template <class K, class V, class KeyHasher = std::hash<K>> class LRUKeyValue { public: LRUKeyValue(size_t maxSize) : _maxSize(maxSize), _currentSize(0){}; @@ -73,7 +73,7 @@ public: typedef typename KVList::iterator KVListIt; typedef typename KVList::const_iterator KVListConstIt; - typedef stdx::unordered_map<K, KVListIt> KVMap; + typedef stdx::unordered_map<K, KVListIt, KeyHasher> KVMap; typedef typename KVMap::const_iterator KVMapConstIt; /** |