From c0ede237be948532a9113d6db072a7847d02c890 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 23 Oct 2019 18:30:55 +1100 Subject: Get rid of globalCond --- funcs.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'funcs.go') diff --git a/funcs.go b/funcs.go index 2170004..7b5df38 100644 --- a/funcs.go +++ b/funcs.go @@ -21,10 +21,7 @@ retry: goto retry } // commit the write log and broadcast that variables have changed - if len(tx.writes) > 0 { - tx.commit() - globalCond.Broadcast() - } + tx.commit() globalLock.Unlock() } -- cgit v1.2.3