Skip to content

Commit

Permalink
Support loading old phmap_dump files.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Oct 5, 2024
1 parent 99469a2 commit 06f8277
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/gtl/phmap_dump.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ bool raw_hash_set<Policy, Hash, Eq, Alloc>::phmap_load(InputArchive& ar) {
}
ar.loadBinary(ctrl_, sizeof(ctrl_t) * (capacity_ + Group::kWidth + 1));
ar.loadBinary(slots_, sizeof(slot_type) * capacity_);
if (version == 0) {
drop_deletes_without_resize(); // because we didn't load `&growth_left()`
}
return true;
}

Expand Down

0 comments on commit 06f8277

Please sign in to comment.