Commit Graph

161 Commits

Author SHA1 Message Date
7d0b660a84 session: skip loading previlige when "skip-grant-table" is enabled (#9654) 2019-03-12 11:02:13 +08:00
0dada1ec37 binlog: update binlog enable config && add tidb_log_bin system variable (#9625) 2019-03-11 22:18:46 +08:00
560e8cfe57 *: sleep 0 when retry whole transaction (#9454) 2019-03-02 13:16:28 +08:00
ddbf60f6d0 session: upgrade currentBootstrapVersion to 27 (#9496)
It should be upgraded to 27 in 45f9d6a00f4e08ae97d60a3348ce9a6fbe710987,
but it was lost when merging conflicts.
2019-02-27 19:38:27 +08:00
4449eb062a ddl: add ddl job error count limit, exceed the limit should cancel the ddl job (#9295) 2019-02-27 15:03:04 +08:00
45f9d6a00f statistics: compute and store column order correlation with handle (#9315) 2019-02-27 11:32:00 +08:00
c48ac8af18 session,privilege: fix account_locked default value for root (#9448) 2019-02-25 21:14:17 +08:00
0ee8899a6d session,privilege: upgrade TiDB, prepare data for RBAC (#9377)
RBAC(role based access control) needs the following data:
* Add account_locked column to mysql.user
* Add mysql.role_edges table
* Add mysql.default_roles table
* Add Create_role_priv and Drop_role_priv privilege
2019-02-22 18:00:01 +08:00
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
84d1513b09 plugin: support flush tidb plugin {name} in tidb-server (#9320) 2019-02-18 13:48:43 +08:00
3e78ebcb4a add current DB name to general log (#9332) 2019-02-18 13:06:40 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
ba68605ce6 *: use less memory when many rows inserted in one transaction (#9272) 2019-02-13 11:39:46 +08:00
c3f64b2629 *: tiny update for the whitelist plugin (#9271) 2019-02-12 15:54:45 +08:00
640aa65113 *: add some tests for writing-data corner cases (#9199) 2019-02-11 10:20:17 +08:00
2ea6e1bff5 session,server: remove error for RollbackTxn (#9202) 2019-02-11 09:53:12 +08:00
36176be874 *: improve syntax error code & message compatibility (#9103) 2019-01-23 10:46:29 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
4b98ad6f29 *: integrate plugin framework with TiDB (#9006) 2019-01-14 16:53:41 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +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
d6d97259ec planner/core: fix a bug that check update privilege use wrong AsName and DBName (#9003)
* Fix issue 8911
* Check privilege should use table OrigName, instead of AsName
2019-01-10 17:49:25 +08:00
858b200e9a variable: remove tidb_ddl_reorg_worker_cnt and tidb_ddl_reorg_batch_size session level. (#8941) 2019-01-10 15:12:22 +08:00
ddda6b460a session: upgrade tidb_max_chunk_size to new low bound value (#8969) 2019-01-08 18:52:12 +08:00
084aa5a030 config: add initChunkSize config item, make chunk start with 32 (#8480) 2019-01-07 11:14:47 +08:00
41ad62696c session: add a doNotCommit flag to transaction when StmtCommit fail (#8918) 2019-01-03 16:38:59 +08:00
164747c76b session: validate value for global time_zone sys variable (#8876) 2018-12-29 15:57:40 +08:00
351c4a5568 *: refine commit txn slow log (#8731) 2018-12-25 20:49:50 +08:00
b6c05126e3 session: add gofail test for (#8743) (#8801) 2018-12-25 19:19:09 +08:00
3040788655 *: make errcheck work again (#8795) 2018-12-25 17:16:52 +08:00
94df8d1e30 *: ignore unknown hint and return warning instead of return a parser error (#8685) 2018-12-21 13:44:54 +08:00
44f2c2c381 Makefile: make 'make check' faster (#8755)
* remove vet check
* make lint check on $(FILES)
2018-12-21 11:12:18 +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
7528a059cf executor/server/session: add extra info message sent to mysql client (#8285) 2018-12-19 15:32:49 +08:00
9c087d13ee *: replace github.com/etcd-io/gofail with the forked one (#8693)
With the adoption of Go module, GOPATH is not need any more
But github.com/etcd-io/gofail doesn't support packages outside the GOPATH
To overcome the drawback, this commit replace it with our forked one
2018-12-19 11:30:48 +08:00
7056bb0d32 executor, session: refine insert unsigned bigint autoIncreID (#8181) 2018-12-18 23:01:10 +08:00
H
808eab1911 session: support system variable interactive_timeout (#8487) (#8573) 2018-12-14 22:22:25 +08:00
39c0306d5e session: add error log to catch bug stack in Commit (#8687) 2018-12-14 16:48:04 +08:00
30427927f6 *: move session.NewStore to store.New to achieve semantic accuracy (#8617) 2018-12-10 20:53:15 +08:00
e3f3ac24f6 session: add a batch commit session variable for the large transaction (#8293) 2018-12-10 18:29:39 +08:00
ce622ec6d8 session: move more session vars to stmt context for retrying (#8034) 2018-12-10 16:39:43 +08:00
f72769cee4 sessionctx/variable: fix field(History) typo in TransactionContext (#8600) 2018-12-07 12:33:03 +08:00
93acd10f53 *: add context.Context to NewTxn(), tiny refactor (#8530) 2018-12-06 17:45:16 +08:00
312e0f7e9d session: skip global variable cache in unit test (#8594)
If the global variable cache is used, the test code has to sleep a while
to ensure it load the fresh data. This may slow the CI
2018-12-06 16:15:03 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
3128e9b98a *: Hide "Mem" column from SHOW PROCESSSLIST (#8543) 2018-12-05 11:42:58 +08:00
e478be7914 ddl: add ddl_reorg_batch_size variable to control ddl worker batch size and enlarge default batch size. (#8365) 2018-12-04 19:07:12 +08:00
103f2ac2a3 *: add a session variable for window function parser (#8511) 2018-12-04 11:26:59 +08:00
bc7a3154f1 add args info for retry (#8506) (#8509) 2018-12-03 15:30:08 +08:00