Skip to content

Commit

Permalink
session: fix log slow log succ field
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored and root committed Aug 27, 2019
1 parent e37d5f9 commit 9678f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/tidb.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func runStmt(ctx context.Context, sctx sessionctx.Context, s sqlexec.Statement)
// If it is not a select statement, we record its slow log here,
// then it could include the transaction commit time.
if rs == nil {
s.(*executor.ExecStmt).LogSlowQuery(se.GetSessionVars().TxnCtx.StartTS, err != nil)
s.(*executor.ExecStmt).LogSlowQuery(se.GetSessionVars().TxnCtx.StartTS, err == nil)
}
}()

Expand Down

0 comments on commit 9678f8f

Please sign in to comment.