diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index ba3be34..39c55ac 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -3559,7 +3559,8 @@ public: class K = key_type, typename std::enable_if::value, int>::type = 0> node_type extract(const key_arg& key) { - auto it = find(key); + SharedLock m; + auto it = this->template find(key, this->hash(key), m); return it == end() ? node_type() : extract(const_iterator{it}); }