aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/datastore/fixed_size_hash_map.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-10-11 16:52:30 +0200
committerGitHub <noreply@github.com>2022-10-11 16:52:30 +0200
commit274bcee5a55fb61a7c819e6be6acca554fe7a3ae (patch)
treed01ef596666f441c4f9871532aa462e3e4117bd0 /vespalib/src/vespa/vespalib/datastore/fixed_size_hash_map.cpp
parent12a1252225e3dd606066250699789b0c342980a3 (diff)
parent79e553fb451b09437dad80070597fa317515ae3a (diff)
Merge pull request #24393 from vespa-engine/toregge/rename-icompactable-move-to-move-on-compactv8.67.17
Rename ICompactable::move to move_on_compact.
Diffstat (limited to 'vespalib/src/vespa/vespalib/datastore/fixed_size_hash_map.cpp')
-rw-r--r--vespalib/src/vespa/vespalib/datastore/fixed_size_hash_map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/fixed_size_hash_map.cpp b/vespalib/src/vespa/vespalib/datastore/fixed_size_hash_map.cpp
index 6f001ce3c94..402905d7aca 100644
--- a/vespalib/src/vespa/vespalib/datastore/fixed_size_hash_map.cpp
+++ b/vespalib/src/vespa/vespalib/datastore/fixed_size_hash_map.cpp
@@ -183,7 +183,7 @@ FixedSizeHashMap::foreach_key(const std::function<void(EntryRef)>& callback) con
}
void
-FixedSizeHashMap::move_keys(ICompactable& compactable, const EntryRefFilter &compacting_buffers)
+FixedSizeHashMap::move_keys_on_compact(ICompactable& compactable, const EntryRefFilter &compacting_buffers)
{
for (auto& chain_head : _chain_heads) {
uint32_t node_idx = chain_head.load_relaxed();
@@ -192,7 +192,7 @@ FixedSizeHashMap::move_keys(ICompactable& compactable, const EntryRefFilter &com
EntryRef old_ref = node.get_kv().first.load_relaxed();
assert(old_ref.valid());
if (compacting_buffers.has(old_ref)) {
- EntryRef new_ref = compactable.move(old_ref);
+ EntryRef new_ref = compactable.move_on_compact(old_ref);
node.get_kv().first.store_release(new_ref);
}
node_idx = node.get_next_node_idx().load(std::memory_order_relaxed);