Skip to content

Commit

Permalink
#702: PendingSend: reduce pushEpoch and popEpoch in PendingSend::rele…
Browse files Browse the repository at this point in the history
…ase for epoch that was causing a crash
  • Loading branch information
nmm0 committed Apr 29, 2020
1 parent ab34712 commit d82dfd6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/vt/messaging/pending_send.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,13 @@ void PendingSend::consumeMsg() {
void PendingSend::release() {
bool send_msg = msg_ != nullptr || send_action_ != nullptr;
vtAssert(!send_msg || !epoch_action_, "cannot have both a message and epoch action");
if (epoch_produced_ != no_epoch) {
theMsg()->pushEpoch(epoch_produced_);
}
if (send_msg) {
sendMsg();
} else if ( epoch_action_ ) {
epoch_action_();
epoch_action_ = {};
consumeMsg();
}
if (epoch_produced_ != no_epoch) {
theMsg()->popEpoch(epoch_produced_);
}
}

}}

0 comments on commit d82dfd6

Please sign in to comment.