Commit Graph

660 Commits

Author SHA1 Message Date
99d0b22f04 session, util: update session to use new APIs (#22652) 2021-02-19 13:10:30 +08:00
9cb9b69b61 session: ignore linearizability setting for auto-commit transactions (#22746)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-02-18 15:02:32 +08:00
4031706e32 gcworker: remove handler interface (#22779)
Signed-off-by: disksing <i@disksing.com>
2021-02-18 12:09:31 +08:00
20ddc19f22 server: retry executing sql without tiflash after tiflash is down (#22459) 2021-02-05 12:14:41 +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
343c412531 planner, executor, statistics: add tests for version 2 and fix bugs (#22461)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-02-04 15:52:30 +08:00
93d3d04092 executor: support checking schemaVer before staleness transaction begins (#22679) 2021-02-04 11:48:45 +08:00
9e3c0649e4 ddl, session: add tidb_enable_exchange_partition variable (#22638) 2021-02-03 20:36:57 +08:00
7a275a77bb store/tikv: move EtcdBackend out (#22676)
Signed-off-by: disksing <i@disksing.com>
2021-02-03 14:59:57 +08:00
6c1a6dd631 store/tikv: move tikv driver out (#22651)
Co-authored-by: Shirly <wuxuelian@pingcap.com>
2021-02-02 16:28:54 +08:00
7ca1629d1a *: refactor ExecuteInternal to return single resultset (#22546) 2021-02-01 14:05:27 +08:00
xhe
4e471d7cb1 *: move new api out of session package (#22591)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-30 07:24:44 +08:00
4c0fe88a71 store/tikv: resolve sessionctx dependency (#22584)
Signed-off-by: disksing <i@disksing.com>
2021-01-29 17:09:14 +08:00
ea6ccf82e9 *: refactor the RestrictedSQLExecutor interface (#22579) 2021-01-29 12:56:44 +08:00
871856db04 store/tikv: export failpoints (#22539)
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
2021-01-27 17:13:30 +08:00
xhe
ae0057da71 *: preventing SQL injection (#22499)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-26 18:52:08 +08:00
e1e4ad14e5 session: fix the bug that may cause upgrading from v4.0.10 fail (#22448) 2021-01-26 14:46:36 +08:00
a6b2cbe051 ddl: fix GetLeaderDCByBundle error (#22517) 2021-01-25 21:00:19 +08:00
dd8fd16145 session: add testcases for staleness transaction (#22438)
Signed-off-by: Song Gao <disxiaofei@163.com>
2021-01-21 20:47:59 +08:00
57eef1333b server, sessionctx: add multi statement workaround (#22351) 2021-01-21 15:14:58 +08:00
8d6ddedfb1 session,executor: fix point get under @@tidb_snapshot (#22460)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-21 14:43:19 +08:00
030a00e55d store/tikv: Add more failpoints (#22362)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2021-01-21 13:40:29 +08:00
3dd842f50a statistics: add bucket ndv for index histogram (#20580)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-13 18:24:21 +08:00
68aaa2fa7e *: fix auto-id allocate tracing (#22371) 2021-01-13 12:19:58 +08:00
xhe
289bc7e79c ddl: concurrent safe api for using rule bundles cache (#22035)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-13 10:58:58 +08:00
dd234b7e32 session: fix the duplicate binding case when updating bind info (#22367) 2021-01-12 16:30:59 +08:00
4088c2011b planner: check index valid while forUpdateRead (#22152)
Signed-off-by: you06 <you1474600@gmail.com>
2021-01-12 15:09:59 +08:00
78529e86eb session: fix two cases when updating bind info (#22338) 2021-01-11 15:55:58 +08:00
390eeeb570 session: support validating read-only statement during read-only staleness transaction (#22048) 2021-01-08 16:50:58 +08:00
cec1a92658 session, sessionctx: remove unused GetAllSysVars (#22284) 2021-01-08 14:58:58 +08:00
fd7da4fbe6 test: stabilize test case (#22276) 2021-01-07 22:11:57 +08:00
ec73315dce *: Move tikv gc configuration to sysvars (#21988) 2021-01-07 13:59:44 +08:00
51794e9d30 *: rewrite origin SQL with default DB for SQL bindings (#21275) 2021-01-06 16:28:29 +08:00
67da69b122 txn: change check logic for column type change for amend (#22150) 2021-01-06 14:01:11 +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
0ddf74b19d statistics: no more counting feedback if it is invalid (#21712) 2021-01-04 16:22:45 +08:00
57cd694731 session: set process info before building plan (#22101) 2021-01-04 14:46:15 +08:00
eae64e40fe executor: support exact staleness begin statement (#21897) 2020-12-31 22:08:14 +08:00
f8bef9b952 session, distsql: make local transaction error msg user-friendly (#22052) 2020-12-31 16:28:33 +08:00
c40d7833b8 config, session: promise the compatibility of oom-action when upgrading (#22102) 2020-12-30 21:14:14 +08:00
0217a00191 session: add more Local Txn tests (#22020)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2020-12-29 17:03:16 +08:00
b1bd2856ca config: disable list partition by default since it's an experimental feature (#22045) 2020-12-29 09:56:18 +08:00
5e67a597cc planner, store/tikv, executor:Support shuffled hash join and refine codes (#20894) 2020-12-28 15:14:15 +08:00
27071f14d7 session/bootstrap: disable clustered index by default (#21777) 2020-12-25 15:44:07 +08:00
4fdc99b8dd session: fix didn't change current version in #21856 (#22011) 2020-12-25 11:20:59 +08:00
38792204f9 executor, session, sessionctx: make last_plan_from_cache and last_plan_from_binding read-only (#21953) 2020-12-24 16:09:30 +08:00
2139421494 session: use ExecuteInternal to execute the bootstrap SQLs (#21979)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2020-12-24 10:10:59 +08:00
5aebcee5cf executor, session, sessionctx: fix the error message of read-only variable is corrupted (#21948) 2020-12-23 20:09:00 +08:00
9ef7246d29 executor: fix data race in extractTxnScope (#21929) 2020-12-23 15:34:30 +08:00
db7757602f txn: add pessimistic retry logic for amend pessimistic lock phase (#21925) 2020-12-22 17:20:00 +08:00