aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
authorMatt Joiner <anacrolix@gmail.com>2019-11-05 11:49:42 +1100
committerMatt Joiner <anacrolix@gmail.com>2019-11-05 11:49:42 +1100
commitcc0357f5252666ef67bb8f73f86b47ddbdb245be (patch)
treed32209c3cc4696849b79f245f8f2eef45b034b9d /tx.go
parentAdd expvars (diff)
downloadstm-cc0357f5252666ef67bb8f73f86b47ddbdb245be.tar.gz
stm-cc0357f5252666ef67bb8f73f86b47ddbdb245be.tar.xz
Optimize AtomicSet
Diffstat (limited to 'tx.go')
-rw-r--r--tx.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/tx.go b/tx.go
index beb4cbb..4b6edf8 100644
--- a/tx.go
+++ b/tx.go
@@ -30,13 +30,6 @@ func (tx *Tx) verify() bool {
func (tx *Tx) commit() {
for v, val := range tx.writes {
v.changeValue(val)
- v.watchers.Range(func(k, _ interface{}) bool {
- tx := k.(*Tx)
- tx.mu.Lock()
- tx.cond.Broadcast()
- tx.mu.Unlock()
- return true
- })
}
}