Skip to content

Commit

Permalink
session: fix log slow log succ field (#11867) (#11886)
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored Aug 28, 2019
1 parent 456bbcc commit e33f2a5
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 @@ -196,7 +196,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 e33f2a5

Please sign in to comment.