diff options
Diffstat (limited to 'tx.go')
-rw-r--r-- | tx.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -121,12 +121,14 @@ func (tx *Tx) Assert(p bool) { } func (tx *Tx) reset() { + tx.mu.Lock() for k := range tx.reads { delete(tx.reads, k) } for k := range tx.writes { delete(tx.writes, k) } + tx.mu.Unlock() tx.removeRetryProfiles() tx.resetLocks() } |