aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
Diffstat (limited to 'tx.go')
-rw-r--r--tx.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tx.go b/tx.go
index 45af14d..beb4cbb 100644
--- a/tx.go
+++ b/tx.go
@@ -47,6 +47,7 @@ func (tx *Tx) wait() {
}
tx.mu.Lock()
for tx.verify() {
+ expvars.Add("waits", 1)
tx.cond.Wait()
}
tx.mu.Unlock()