Commit Graph

22 Commits

Author SHA1 Message Date
23e516aa56 fix gofail race (#9412) 2019-02-22 14:01:41 +08:00
18449d777a *: merge statement buffer when BatchGetValues (#9374) 2019-02-22 11:06:58 +08:00
ba68605ce6 *: use less memory when many rows inserted in one transaction (#9272) 2019-02-13 11:39:46 +08:00
640aa65113 *: add some tests for writing-data corner cases (#9199) 2019-02-11 10:20:17 +08:00
73655f64a1 session: skip the SQL execution if transaction is aborted and reset aborted status in retry (#8942) 2019-01-11 15:26:51 +08:00
41ad62696c session: add a doNotCommit flag to transaction when StmtCommit fail (#8918) 2019-01-03 16:38:59 +08:00
b6c05126e3 session: add gofail test for (#8743) (#8801) 2018-12-25 19:19:09 +08:00
a7907ede7a *: remove fail field from TxnState (#8712)
Originally, `fail` is added to simplify error handling, avoiding large changes on
the Txn() interface API. But it turns out that `fail` becomes the root of many bugs.
So this commit remove the `fail` and make an API refactory.
2018-12-20 16:36:12 +08:00
39c0306d5e session: add error log to catch bug stack in Commit (#8687) 2018-12-14 16:48:04 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
36bcf5db4a tidb/kv: remove useless errors.Trace (#8527) 2018-11-30 14:30:31 +08:00
654c6a9888 session: add GoString() for TxnState and make the log more use friendly (#8434) 2018-11-29 10:30:39 +08:00
1927cd9a30 session: release datum memory after transaction finished (#8458) 2018-11-27 15:37:12 +08:00
6fb260f8a6 *: redesign trace statement with json output (#8357) 2018-11-21 13:50:18 +08:00
3742a0d602 *: Txn() function signature refactor and remove ActivePendingTxn() (#8327)
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
0c3e9c1652 session,executor: run statement without transaction (#8260)
`set @@autocommit = 0`
`select 1` // This statement should not make the session enter a transaction,
because it never need Txn().
Make txn lazy initialize
2018-11-14 20:10:58 +08:00
d125958380 tikvclient: Add endKey param to Scanner (#8178) 2018-11-08 18:21:40 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
341dc1009c *: tidb tracing prototype (#7016) 2018-08-31 05:25:16 +08:00
f6dbad0f5c *: move the dirty table modification to table package (#7289) 2018-08-07 15:38:01 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00