aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stm.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/stm.go b/src/stm.go
index ef9e512..41359af 100644
--- a/src/stm.go
+++ b/src/stm.go
@@ -261,20 +261,12 @@ var (
tx.cond.L = &tx.mu
return tx
}}
- failedCommitsProfile *pprof.Profile
)
const (
- profileFailedCommits = false
sleepBetweenRetries = false
)
-func init() {
- if profileFailedCommits {
- failedCommitsProfile = pprof.NewProfile("stmFailedCommits")
- }
-}
-
func newTx() *Tx {
tx := txPool.Get().(*Tx)
tx.tries = 0
@@ -328,9 +320,6 @@ retry:
if tx.inputsChanged() {
tx.unlock()
expvars.Add("failed commits", 1)
- if profileFailedCommits {
- failedCommitsProfile.Add(new(int), 0)
- }
goto retry
}
// commit the write log and broadcast that variables have changed