aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2019-09-13 12:56:49 +0000
committerGeir Storli <geirst@verizonmedia.com>2019-09-13 12:56:49 +0000
commitf6e8fb32ebd8859f9ac181f138e8f5d1b4cba700 (patch)
tree56fa0220166608dbabf56e2faff31ad8cda0e0a5 /vespalib
parent3f7eec69c9aa1e637dfabc7cc4adb891c119a37d (diff)
Don't use frozen view when getting number of unique values.
This is aligned with how enum store dictionary gets this number.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.hpp b/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.hpp
index 14ed0c380c5..b1189a1b37b 100644
--- a/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.hpp
+++ b/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.hpp
@@ -146,7 +146,7 @@ template <typename DictionaryT, typename ParentT>
uint32_t
UniqueStoreDictionary<DictionaryT, ParentT>::get_num_uniques() const
{
- return _dict.getFrozenView().size();
+ return _dict.size();
}
template <typename DictionaryT, typename ParentT>