Always try shrink after node erasure.
This commit is contained in:
parent
d090929249
commit
6f2a9270a3
@ -398,7 +398,6 @@ class FlatHashTable {
|
||||
return 0;
|
||||
}
|
||||
erase(it);
|
||||
try_shrink();
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -415,6 +414,7 @@ class FlatHashTable {
|
||||
DCHECK(it != end());
|
||||
DCHECK(!it.it_->empty());
|
||||
erase_node(it.it_);
|
||||
try_shrink();
|
||||
}
|
||||
|
||||
template <class F>
|
||||
|
Loading…
Reference in New Issue
Block a user