aboutsummaryrefslogtreecommitdiff
path: root/funcs.go
diff options
context:
space:
mode:
authorMatt Joiner <anacrolix@gmail.com>2019-10-23 18:30:55 +1100
committerMatt Joiner <anacrolix@gmail.com>2019-10-23 18:30:55 +1100
commitc0ede237be948532a9113d6db072a7847d02c890 (patch)
tree509ad139815eca014f7d734d4e3135a6e676e1b2 /funcs.go
parentRegister transaction condition with each read Var only (diff)
downloadstm-c0ede237be948532a9113d6db072a7847d02c890.tar.gz
stm-c0ede237be948532a9113d6db072a7847d02c890.tar.xz
Get rid of globalCond
Diffstat (limited to 'funcs.go')
-rw-r--r--funcs.go5
1 files changed, 1 insertions, 4 deletions
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()
}