Support loading pre-1.3.12 phmap_dump files. (#251)

This commit is contained in:
Gregory Popovitch
2024-10-05 17:54:30 -04:00
committed by GitHub
parent 60acfa4690
commit feb600c4e7
+2
View File
@@ -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;
}