From 6efb032b54bd38efa98e6d39021a765d9997857c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 1 Oct 2020 11:10:09 +1000 Subject: New Tx must have completed=false This uncovers a race condition where new Tx are already marked completed. --- tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tx.go') diff --git a/tx.go b/tx.go index f613efb..065cb6c 100644 --- a/tx.go +++ b/tx.go @@ -125,7 +125,7 @@ func (tx *Tx) recycle() { delete(tx.watching, v) v.watchers.Delete(tx) } - txPool.Put(tx) + //txPool.Put(tx) } func (tx *Tx) lockAllVars() { -- cgit v1.2.3