Commit Graph

31 Commits

Author SHA1 Message Date
cb23b524ac *: directly save prepare execute args as datums in binary proto (#10884) 2019-07-02 13:49:06 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
e90f3b9568 meta, util: add unit tests (#10054) 2019-04-11 10:22:00 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
32fdf46b1f util: use uniform log format for util package (#9668) 2019-03-22 10:33:03 +08:00
63b49c9e42 util: fix issue #9532, quote database name before running SQL with it (#9547) 2019-03-05 14:07:23 +08:00
2ea6e1bff5 session,server: remove error for RollbackTxn (#9202) 2019-02-11 09:53:12 +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
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +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
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
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
a5af7a0e1f *: remove variable 'tidb_import_data' and rename SessionVars.ImportingData to LightningMode (#7262) 2018-08-03 10:00:03 +08:00
8058fd644b util/kvencoder: use reference count to keep single domain instance (#7094)
BootstrapSession should not be called many times and we should keep
just a single domain instance
2018-07-19 11:03:26 +08:00
afe45fd2ea mockstore,tikv: fix that mocktikv ignore latches config (#6932) 2018-06-29 17:57:43 +08:00
1e82cb9632 store, kvencoder: add a options to disable txn local latches in mockTikvStore, which may cause lightning to be oom. (#6750) 2018-06-05 11:19:05 +08:00
c0697f5cb0 kvencoder: fix data race on plan.PreparedPlanCacheCapacity (#6159) 2018-03-27 16:48:25 +08:00
e469fab346 kvencoder: add GetSystemVariable and SetSystemVariable to KvEncoder, to get/set system variable (#6136) 2018-03-23 17:44:59 +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
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
de9c192cba *: move mocktikv from tikv pkg (#5834) 2018-02-08 23:31:29 +08:00
4d50ae22bc kvencode: enable prepare plan cache. (#5627) 2018-01-14 15:04:36 +08:00
6f86ddda7c kv_encoder: add lock to storeBootstrapped (#5595)
Make init kv_encoder parallelly be possible.
2018-01-10 14:32:47 +08:00
eddff3429a *: importing data reduce memory allocations. (#5549) 2018-01-07 12:48:07 +08:00
36d9b61365 *: AddIndex skip checking unique constraint when TiDB is importing data. (#5535) 2018-01-02 20:08:49 +08:00
80cf3ed3be kvencoder: add prepare sql encode support (#5505) 2017-12-26 18:32:29 +08:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
00a14b52f0 kvencoder: add EncodeMetaAutoID method (#5272) 2017-11-30 19:07:08 +08:00
d815ce1a0d util : fix problem of kvencoder accessing database without creating in advance (#5269) 2017-11-30 15:29:28 +08:00
5f468489ab util: add kvencoder package, make transfer sql to key-values be possible. (#5236) 2017-11-29 18:01:31 +08:00