Commit Graph

126 Commits

Author SHA1 Message Date
d3fe2187a9 statistics: introduce a new kind of syntax to drop global-stats (#23061) 2021-03-03 14:50:54 +08:00
d94920e4a9 statistics: support dropping partition/global level statistics (#23023) 2021-03-02 16:52:48 +08:00
b226130926 session: fix linearizability for non-autocommit async-commit txn (#22879)
* fix linearizability for non-autocommit async-commit txntxn

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* add IsExplicit flag

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* set missing cases

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* remove redundant assignment

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* revert go sum change

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* fmt

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* clarify comment

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-02-24 13:32:48 +08:00
xhe
4172f473da *: adapt new api for the executor package (#22644)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-02-04 17:32:15 +08:00
2fc1703a9c session, exectutor: Guarantee external consistency by default; Add an explicit begin statement to disable it (#22597)
Signed-off-by: ekexium <ekexium@gmail.com>
2021-02-04 16:09:46 +08:00
93d3d04092 executor: support checking schemaVer before staleness transaction begins (#22679) 2021-02-04 11:48:45 +08:00
4c0fe88a71 store/tikv: resolve sessionctx dependency (#22584)
Signed-off-by: disksing <i@disksing.com>
2021-01-29 17:09:14 +08:00
0aa476034a go.mod, statistics, planner: replace TIDB_STATS with STATS_EXTENDED (#22492) 2021-01-25 21:18:07 +08:00
d0ca720a5f *: support ALTER TABLE ADD / DROP TIDB_STATS (#22127) 2021-01-14 15:28:28 +08:00
76054200b6 statistics: redesign the schema for mysql.stats_extended (#22033)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-04 17:57:24 +08:00
eae64e40fe executor: support exact staleness begin statement (#21897) 2020-12-31 22:08:14 +08:00
efc0759961 *: add enable-global-kill with default value FALSE (#21859) 2020-12-17 20:48:34 +08:00
3cbfec31d9 *: add a switch for extended stats to disable the feature by default (#21716) 2020-12-15 18:27:23 +08:00
e01f5e41c2 store, session: Introduce system variable to control ratelimit action (#21259) 2020-11-25 20:27:38 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
fa81ec51b4 *: refactor sysvars to allow component registration (#20289) 2020-09-29 14:04:24 +08:00
31a91d825c config: remove pessimistic-txn.enable in config (#20008)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-09-16 10:53:08 +08:00
bba4c64a00 executor: fix alter user statement for user() and current_user() (#19345) 2020-08-27 15:55:19 +08:00
c5c7bf87bb *: support CREATE / DROP / ADMIN RELOAD STATISTICS (#18880) 2020-08-11 17:27:48 +08:00
6a7ba4aafa executor: make the format of the DB field in slow logs be compatible with MySQL (#18389) 2020-07-13 18:39:41 +08:00
b8fb4b0965 metrics: distinguish transactions by mode (#17912) 2020-06-15 16:20:38 +08:00
5fc4a8c96a executor: fix alter-user with hash string (#17640) 2020-06-03 21:54:27 +08:00
d49573e050 *: refine some logs with incorrect collation (#16275) 2020-04-22 15:23:48 +08:00
20b555cfad privilege: use internal session to run SET DEFAULT ROL ALL (#15525) 2020-03-23 18:44:17 +08:00
aec6143179 *: support require-secure-transport startup option (#15341) 2020-03-17 08:46:45 +08:00
5c68d537f4 *: support reload tls used by mysql protocol in place (#14749) 2020-03-03 10:01:39 +08:00
8f0091ef17 privilege: fix atomic problem of GRANT and REVOKE (#14219) 2020-03-02 15:58:18 +08:00
344c48d3b4 *: change field name 'password' to 'authentication_string' in mysql.user (#14598) 2020-02-19 11:58:42 +08:00
fb44302cb2 executor: fix 'shutdown' diffrent reaction with mysql (#14268) 2019-12-28 21:27:09 +08:00
c6cb405e9e executor: add rollback in releaseSysSession (#14269) 2019-12-27 23:12:02 +08:00
cd07c4550d *: support certificate based authentication (#13955) 2019-12-23 11:37:29 +08:00
cb37596c39 privilege: fix atomic problem of DROP ROLE (#14090) 2019-12-18 20:02:46 +08:00
7c17add7c0 privilege: fix privilege check of CREATE ROLE and DROP ROLE (#13940) 2019-12-11 13:43:58 +08:00
795c630dbc Makefile: Replace Gometalinter to Golangci-lint (#13405) 2019-12-09 15:08:40 +08:00
94481e883d session: if txn invalid do not active it and return an error (#13935) 2019-12-09 13:41:09 +08:00
0730eeca03 *: fix snapshot problem in show table status (#13797) 2019-12-05 13:26:26 +08:00
527c1aef63 privilege: using system session to execute internal sql of RBAC (#13820) 2019-12-04 14:54:09 +08:00
acfc7be794 infoschema: refine error code for package infoschema (#13646) 2019-11-26 10:21:43 +08:00
39a6f7f4cc *: make transaction duration metrics more reasonable (#13444) 2019-11-15 19:17:36 +08:00
5bf03c8df4 executor: add SHUTDOWN command and privilege check (#12804) 2019-10-21 21:49:56 +08:00
0fbd21c085 *: replace pessimistic default config option with global variable (#12041) 2019-09-05 18:32:58 +08:00
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
8a4b60c682 executor, privileges: fix privilege check fail for CREATE USER and DROP USER (#11589) 2019-08-19 19:08:17 +08:00
b393b76826 executor, privileges: fix privileges check fail for SET DEFAULT ROLE (#11201) 2019-08-19 13:48:16 +08:00
c00d8a95cf executor, privilege: fix some two bug of RBAC (#11273) 2019-07-22 13:08:03 +08:00
5886bb90d1 executor: let flush privileges do nothing when skip-grant-table is configured (#10986)
When skip-grant-table is enabled, privilege handle is not initialized, calling flush privileges
would meet nil pointer panic
2019-07-02 10:44:30 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
78881f6d2d executor: execute some statement (create user grant etc) would commit current transaction automically (#10707) 2019-06-06 15:45:48 +08:00