Skip to content

Commit

Permalink
#2092: get msg data before function call
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern committed May 16, 2023
1 parent fc98e0f commit 645c442
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vt/topos/location/location.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,9 @@ void EntityLocationCoord<EntityID>::routePreparedMsg(
} else {
theTerm()->produce(epoch);
// non-eager protocol: get location first then send message after resolution
getLocation(msg->getEntity(), msg->getHomeNode(), [this, epoch, m = std::move(msg)](NodeType node) mutable {
auto entity = msg->getEntity();
auto home_node = msg->getHomeNode();
getLocation(entity, home_node, [this, epoch, m = std::move(msg)](NodeType node) mutable {
theMsg()->pushEpoch(epoch);
routeMsgNode<MessageT>(
m->getEntity(), m->getHomeNode(), node, std::move(m)
Expand Down

0 comments on commit 645c442

Please sign in to comment.