Skip to content

Commit 02abcdf

Browse files
committed
Support loading pre-1.3.12 phmap_dump files.
1 parent 60acfa4 commit 02abcdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parallel_hashmap/phmap_dump.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ bool raw_hash_set<Policy, Hash, Eq, Alloc>::phmap_load(InputArchive& ar) {
9494
if (version >= s_version_base) {
9595
// growth_left should be restored after calling initialize_slots() which resets it.
9696
ar.loadBinary(&growth_left(), sizeof(size_t));
97+
} else {
98+
drop_deletes_without_resize();
9799
}
98100
return true;
99101
}

0 commit comments

Comments
 (0)