private/dbutil/txutil: remove the individual retry events

Change-Id: I63d06e57d7e6723b4d00d51f77c46345a11c4671
This commit is contained in:
Jeff Wendling 2020-02-27 17:13:27 -07:00 committed by Egon Elbre
parent f495544c56
commit 443aa08a06

View File

@ -8,7 +8,6 @@ package txutil
import (
"context"
"database/sql"
"fmt"
"time"
"github.com/lib/pq"
@ -37,7 +36,6 @@ func WithTx(ctx context.Context, db tagsql.DB, txOpts *sql.TxOptions, fn func(co
err, rollbackErr := withTxOnce(ctx, db, txOpts, fn)
if dur := time.Since(start); dur < 5*time.Minute && i < 10 {
if code := errCode(err); code == "CR000" || code == "40001" {
mon.Event(fmt.Sprintf("transaction_retry_%d", i+1))
continue
}
} else {