mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Support loading pre-1.3.12 phmap_dump files. (#251)
This commit is contained in:
committed by
GitHub
parent
60acfa4690
commit
feb600c4e7
Vendored
+2
@@ -94,6 +94,8 @@ bool raw_hash_set<Policy, Hash, Eq, Alloc>::phmap_load(InputArchive& ar) {
|
||||
if (version >= s_version_base) {
|
||||
// growth_left should be restored after calling initialize_slots() which resets it.
|
||||
ar.loadBinary(&growth_left(), sizeof(size_t));
|
||||
} else {
|
||||
drop_deletes_without_resize();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user