From f78f0b5b5146dfe9e8e3f0813fd3a0f7d34c4848 Mon Sep 17 00:00:00 2001 From: vng Date: Thu, 29 Oct 2015 11:33:09 +0300 Subject: [PATCH] Fixed bug with reusable caches count. --- indexer/mwm_set.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indexer/mwm_set.hpp b/indexer/mwm_set.hpp index 9700264be8..45a44914e9 100644 --- a/indexer/mwm_set.hpp +++ b/indexer/mwm_set.hpp @@ -105,7 +105,10 @@ public: }; public: - explicit MwmSet(size_t cacheSize = 5) : m_cacheSize(cacheSize) {} + // Default value 32=2^5 was from the very begining. + // Later, we replaced my::Cache with the std::deque, but forgot to change + // logarithm constant 5 with actual size 32. Now it's fixed. + explicit MwmSet(size_t cacheSize = 32) : m_cacheSize(cacheSize) {} virtual ~MwmSet() = default; class MwmValueBase