Skip to content

Commit

Permalink
session: fix log slow log succ field (#11867)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored and zz-jason committed Aug 27, 2019
1 parent 4cd5d15 commit e15e66b
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 @@ -217,7 +217,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 e15e66b

Please sign in to comment.