Skip to content

Commit

Permalink
check for retry_writes before ading retryable label
Browse files Browse the repository at this point in the history
  • Loading branch information
abr-egn committed Mar 25, 2022
1 parent 5cf1932 commit 7749c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ impl Client {
Ok(c) => c,
Err(mut err) => {
err.add_labels_and_update_pin(None, &mut session, None)?;
if err.is_read_retryable() {
if err.is_read_retryable() && self.inner.options.retry_writes != Some(false) {
err.add_label(RETRYABLE_WRITE_ERROR);
}

Expand Down

0 comments on commit 7749c95

Please sign in to comment.