Skip to content

Commit

Permalink
GODRIVER-2997 Prevent cancelable context in txn commit loop (#1416)
Browse files Browse the repository at this point in the history
(cherry picked from commit 757e2a7)
  • Loading branch information
prestonvasquez authored and blink1073 committed Oct 10, 2023
1 parent 39d0411 commit daa5d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongo/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (s *sessionImpl) WithTransaction(ctx context.Context, fn func(ctx SessionCo

CommitLoop:
for {
err = s.CommitTransaction(ctx)
err = s.CommitTransaction(newBackgroundContext(ctx))
// End when error is nil, as transaction has been committed.
if err == nil {
return res, nil
Expand Down

0 comments on commit daa5d87

Please sign in to comment.