store/tikv: eliminate rollback txn info log in mockTikv. log it in debug level. (#5361)

This commit is contained in:
winkyao
2017-12-11 17:57:13 +08:00
committed by Ewan Chou
parent d0ee98fa33
commit 09a5c9201e

View File

@ -181,7 +181,12 @@ func (txn *tikvTxn) Rollback() error {
return kv.ErrInvalidTxn
}
txn.close()
log.Infof("[kv] Rollback txn %d", txn.StartTS())
logMsg := fmt.Sprintf("[kv] Rollback txn %d", txn.StartTS())
if txn.store.mock {
log.Debug(logMsg)
} else {
log.Info(logMsg)
}
txnCmdCounter.WithLabelValues("rollback").Inc()
return nil