aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-03-31 15:36:36 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-03-31 15:42:18 +0000
commitc83fc01d252ae434ec019a7c1cbc0f88ad58a80b (patch)
treed0e24c1d4064b18d87290c39777e2e18368a778d /vespalib
parente2dd7add7271529d097fc6a0f903784b61ab4c15 (diff)
No const on static methods.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/datastore/sharded_hash_map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/sharded_hash_map.h b/vespalib/src/vespa/vespalib/datastore/sharded_hash_map.h
index 3e711c6b719..73ee8c05feb 100644
--- a/vespalib/src/vespa/vespalib/datastore/sharded_hash_map.h
+++ b/vespalib/src/vespa/vespalib/datastore/sharded_hash_map.h
@@ -5,6 +5,7 @@
#include "atomic_entry_ref.h"
#include <atomic>
#include <vespa/vespalib/util/generationholder.h>
+#include <vespa/vespalib/stllike/string.h>
#include <functional>
namespace vespalib { class MemoryUsage; }
@@ -41,7 +42,7 @@ private:
std::atomic<FixedSizeHashMap *> _maps[num_shards];
std::unique_ptr<const EntryComparator> _comp;
- VESPA_DLL_LOCAL static size_t get_shard_idx(const EntryComparator& comp, EntryRef key_ref) const;
+ VESPA_DLL_LOCAL static size_t get_shard_idx(const EntryComparator& comp, EntryRef key_ref);
void alloc_shard(size_t shard_idx);
void hold_shard(std::unique_ptr<const FixedSizeHashMap> map);
public: