Skip to content

Commit

Permalink
cherry pick #28480 to release-5.2
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
longfangsong authored and ti-srebot committed Oct 9, 2021
1 parent 466f6e7 commit b79d4e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,10 @@ func (s *session) retry(ctx context.Context, maxCnt uint) (err error) {
zap.Uint("retryCnt", retryCnt),
zap.Int("queryNum", i))
}
_, digest := s.sessionVars.StmtCtx.SQLDigest()
s.txn.onStmtStart(digest.String())
_, err = st.Exec(ctx)
s.txn.onStmtEnd()
if err != nil {
s.StmtRollback()
break
Expand Down

0 comments on commit b79d4e7

Please sign in to comment.