Skip to content

Commit

Permalink
Merge pull request #721 from smukil/fix_msg_leak_for_each_safe_quorum
Browse files Browse the repository at this point in the history
Fix msg leak with DC_EACH_SAFE_QUORUM
  • Loading branch information
smukil authored Oct 16, 2019
2 parents d5c1032 + 4997f26 commit 7747c05
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/dyn_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,8 @@ rstatus_t req_forward_to_peer(struct context *ctx, struct conn *c_conn,
}

if (!(same_dc && same_rack) || force_swallow) {
if (req->consistency != DC_EACH_SAFE_QUORUM || force_swallow) {
// Swallow responses from remote racks or DCs.
rack_msg->swallow = true;
}
// Swallow responses from remote racks or DCs.
rack_msg->swallow = true;
}

// Get a connection to the node.
Expand Down

0 comments on commit 7747c05

Please sign in to comment.