Skip to content

Commit

Permalink
#1934: Add resizeHistory method back after resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed Sep 23, 2024
1 parent f4630e7 commit 1ecd8d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/vt/vrt/collection/balance/lb_data_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,15 @@ std::unordered_map<ElementIDType, tv::ObjectInfo> LBDataHolder::getObjInfo(

#endif

void LBDataHolder::resizeHistory(std::size_t num_to_retain) {
node_data_.resize(num_to_retain);
node_comm_.resize(num_to_retain);
node_subphase_comm_.resize(num_to_retain);
user_defined_json_.resize(num_to_retain);
user_defined_lb_info_.resize(num_to_retain);
node_user_attributes_.resize(num_to_retain);
}

LBDataHolder::LBDataHolder(nlohmann::json const& j)
{
this_node_ = theContext()->getNode();
Expand Down

0 comments on commit 1ecd8d2

Please sign in to comment.