Skip to content

Commit 2a8a34c

Browse files
p-mongop
authored andcommitted
Fix another occurrence of tx api not clearing in progress flag (#1321)
1 parent f07620d commit 2a8a34c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mongo/session.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ def with_transaction(options=nil)
812812
if e.label?(Mongo::Error::UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL)
813813
# WriteConcernFailed
814814
if e.is_a?(Mongo::Error::OperationFailure) && e.code == 64 && e.wtimeout?
815+
transaction_in_progress = false
815816
raise
816817
end
817818
if Time.now >= deadline

0 commit comments

Comments
 (0)