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
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
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
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
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
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
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
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
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
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
ce622ec6d8
session: move more session vars to stmt context for retrying ( #8034 )
2018-12-10 16:39:43 +08:00
93acd10f53
*: add context.Context to NewTxn(), tiny refactor ( #8530 )
2018-12-06 17:45:16 +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
654c6a9888
session: add GoString() for TxnState and make the log more use friendly ( #8434 )
2018-11-29 10:30:39 +08:00
e7e31fae3f
*: add preparedStmt metric and add limit to max prepareStmt ( #8405 )
2018-11-28 20:37:50 +08:00
bb7bb14fc3
support system variable wait_timeout. ( #8245 ) ( #8346 )
2018-11-28 11:53:07 +08:00
cadab30b4a
domain,session: simplify the session pool of domain ( #8456 )
2018-11-27 16:09:55 +08:00
1927cd9a30
session: release datum memory after transaction finished ( #8458 )
2018-11-27 15:37:12 +08:00
cb64314131
session: add current DB to CRUCIAL OPERATION log ( #8447 )
2018-11-26 21:24:44 +08:00
84d1299bb2
config, util.kvcache: support the memory guard to prevent OOM for the plan cache ( #8339 )
2018-11-22 22:05:04 +08:00
e69aa2749b
server: unix socket should verify user's authentication ( #8381 )
2018-11-22 13:43:38 +08:00
f085f4fee4
admin: admin check table/index using tidb_snapshot ( #8172 )
...
* admin: admin check table/index support snapshot
2018-11-22 12:21:53 +08:00
6fb260f8a6
*: redesign trace statement with json output ( #8357 )
2018-11-21 13:50:18 +08:00
61ee0da103
planner: cleanup prepare cache when client send deallocate ( #8332 )
2018-11-20 12:33:44 +08:00
8ddbd7062e
session: fix bootstrap error in ANSI sql_mode ( #8353 )
2018-11-20 11:25:49 +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
dcba7eac00
session: add sql types for commit and retry ( #8281 )
2018-11-14 16:40:27 +08:00
877cbd33c7
*: spilt the internal SQLs in the transaction related metrics ( #8255 )
2018-11-09 20:47:36 +08:00
81d2fff83c
store/tikv: refine backoff log ( #8207 )
2018-11-08 15:56:01 +08:00
9fdc8ebe5d
session: add transaction start timestamp to the log when retrying ( #8091 )
2018-11-07 16:12: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
696ef7bae2
plan: convert in subquery to agg and inner join ( #7531 )
2018-10-30 19:19:32 +08:00