Skip to content

Commit

Permalink
session: fix log slow log succ field (#11867) (#11887)
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored Aug 28, 2019
1 parent 0519992 commit 7e5b9a7
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 @@ -216,7 +216,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(origTxnCtx.StartTS, err != nil)
s.(*executor.ExecStmt).LogSlowQuery(origTxnCtx.StartTS, err == nil)
}
}()

Expand Down

0 comments on commit 7e5b9a7

Please sign in to comment.