Commit 8bfba08
committed
Fix InMemoryTransactionIdStorage stale session on reconnect
Get(persistable:true) used SafeAdd which returned the cached session
with old requestId mappings. When a client reconnects with the same
sessionId, CreateTransactionId throws "duplicated". Replace SafeAdd
with unconditional assignment to always create a fresh session.1 parent 7085927 commit 8bfba08
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
| |||
0 commit comments