Skip to content

Commit

Permalink
Add missing retryable write case to pseudo code
Browse files Browse the repository at this point in the history
The pseudo code example for executing retryable write commands was
missing the case below:

- CSOT is not enabled and one retry was attempted.

This corrects the pseudo code to unify it with the prose description.

Related to: DRIVERS-1807
  • Loading branch information
kkloberdanz committed Aug 17, 2023
1 parent b8a5a00 commit c9c3c6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/retryable-writes/retryable-writes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,11 @@ The above rules are implemented in the following pseudo-code:
if (timeoutMS != null && isExpired(timeoutMS) {
throw previousError;
}
/* If CSOT is not enabled attempt one retry before giving up. */
if (timeoutMS == null) {
return executeCommand(server, retryableCommand);
}
}
}
Expand Down

0 comments on commit c9c3c6f

Please sign in to comment.