Skip to content

Commit

Permalink
fix wild pointers caused by vector expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessOIer committed Sep 19, 2024
1 parent ebcd537 commit 9967fb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CraneCtld/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2008,6 +2008,7 @@ bool MinLoadFirst::CalculateRunningNodesAndStartTime_(
return lhs->it->first > rhs->it->first;
});

trackers.reserve(craned_indexes_.size());
for (CranedId craned_id : craned_indexes_) {
auto& time_delta_res_map =
node_selection_info.node_time_delta_res_map.at(craned_id);
Expand Down

0 comments on commit 9967fb2

Please sign in to comment.