Skip to content

Commit

Permalink
[party] Fix bad log line (grpc#37750)
Browse files Browse the repository at this point in the history
This log line was printing an incorrect new state, and that led me down a multi-hour garden path whereby I was fixing a bug that did not exist.

Closes grpc#37750

COPYBARA_INTEGRATE_REVIEW=grpc#37750 from ctiller:flake-fightas-12 020dd73
PiperOrigin-RevId: 676253730
  • Loading branch information
ctiller authored and copybara-github committed Sep 19, 2024
1 parent e3aa788 commit e0c6055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/promise/party.cc
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void Party::RunPartyAndUnref(uint64_t prev_state) {
(prev_state & (kRefMask | keep_allocated_mask)) - kOneRef,
std::memory_order_acq_rel, std::memory_order_acquire)) {
LogStateChange("Run:End", prev_state,
prev_state & (kRefMask | kAllocatedMask) - kOneRef);
(prev_state & (kRefMask | keep_allocated_mask)) - kOneRef);
if ((prev_state & kRefMask) == kOneRef) {
// We're done with the party.
PartyIsOver();
Expand Down

0 comments on commit e0c6055

Please sign in to comment.