util/IntrusiveHashSet: rename insert() to insert_commit()
Clarify that the method is not a freestanding insertion method but should only be used after insert_check().
This commit is contained in:

committed by
Max Kellermann

parent
e133f621a4
commit
42d5b05f54
@@ -31,7 +31,7 @@ RemoteTagCache::Lookup(const std::string &uri) noexcept
|
||||
auto [tag, value] = map.insert_check(uri);
|
||||
if (value) {
|
||||
auto item = new Item(*this, uri);
|
||||
map.insert(tag, *item);
|
||||
map.insert_commit(tag, *item);
|
||||
waiting_list.push_back(*item);
|
||||
lock.unlock();
|
||||
|
||||
|
Reference in New Issue
Block a user