Commit Graph

433 Commits

Author SHA1 Message Date
75913fdc9c executor,kv: support timebounded staleness transaction (#23866) 2021-04-27 15:44:00 +08:00
7e15333920 store/tikv: move kv.TxnInfo to store/tikv (#24216) 2021-04-26 23:27:56 +08:00
6f068bcd1e store/tikv:move LockExpire error from tikv package to tidb since it i… (#24269) 2021-04-26 19:27:56 +08:00
6084a6a5ff variable: change SetSessionSystemVar to accept string (#24247) 2021-04-26 11:47:55 +08:00
67e63d9ffa variable: merge Bool{On,Off} with {On,Off} (#24218) 2021-04-23 13:09:54 +08:00
2de4a918ac variable: refactor session/global validation (part 8) (#24100) 2021-04-23 12:07:54 +08:00
1f95d7de83 variable: add global, session variable cte_max_recursion_depth (#24170) 2021-04-21 15:15:54 +08:00
53c5d6e465 session, store: Reduce log spam of duplicate key errors (#24101) 2021-04-20 14:21:52 +08:00
720c47e4b8 *: don't allocate SessionIndexUsageCollector when indexUsageLease equals 0 (#23931) 2021-04-16 23:39:51 +08:00
a53cf42075 execdetails: move execdetails to store/tikv (#23985) 2021-04-15 15:13:55 +08:00
58fb30f4d6 session: fix global variable collation_server does not take effect in new session (#23932) 2021-04-15 13:03:53 +08:00
69675ead57 store/tikv: move CommitDetails and LockDetails to tikv/util (#23854)
Signed-off-by: disksing <i@disksing.com>

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-04-09 20:56:24 +08:00
e18cab75e2 Revert "*: don't allocate SessionIndexUsageCollector when indexUsageLease equals 0" (#23929) 2021-04-09 15:05:26 +08:00
6cff35892c *: don't allocate SessionIndexUsageCollector when indexUsageLease equals 0 (#23861) 2021-04-07 14:18:16 +08:00
3154af1e94 variable: refactor session/global validation (part 3) (#23719) 2021-04-02 11:27:24 +08:00
90d02b2eed *: add support for dynamic privileges (#22778) 2021-04-01 00:17:24 +08:00
f9708e6043 *: collect transaction write duration/throughput metrics for SLI/SLO (#23462) 2021-03-30 11:19:24 +08:00
f08e76cb1c store/tikv/kv:move tikv/error.go to tikv/kv/error.go (#23627) 2021-03-30 11:03:23 +08:00
aee5819a20 *: change @@tidb_enable_clustered_index to ON/OFF/INT_ONLY (#23529) 2021-03-26 15:59:24 +08:00
a90e4f2b29 telemetry: fix prepare stmt and copr cache (#23526) 2021-03-25 16:15:15 +08:00
4b7a3767b0 telemetry: Fix window algorithm (#23518) 2021-03-25 11:37:23 +08:00
5243049e18 telemetry: add copr-cache, tiflash, cluster index, async commit (#23454) 2021-03-23 20:27:07 +08:00
efe172b0e0 store/tikv:move option from kv to tikv, and make define as a normal int (#23171) 2021-03-22 20:13:36 +08:00
b983856ddf store/tikv:mv kv.ReplicaReadType to tikv (#23376) 2021-03-19 21:19:36 +08:00
92b1b8e0e9 planner: check schema stale for plan cache when forUpdateRead (#22381) 2021-03-19 17:25:36 +08:00
da0b6eb20c *: fix processlist.txnstart when tidb_snapshot is set (#23381) 2021-03-18 11:30:55 +08:00
080ed4ee7b store/tikv:move mockCommitErrorEnable from kv to tikv since it is only used in tikv (#23355)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
Co-authored-by: disksing <i@disksing.com>
2021-03-17 17:13:30 +08:00
26ccbe972a *: create int primary key table as nonclustered by default (#23046) 2021-03-16 19:19:49 +08:00
035c15f7da *: rename tiflash fallback switch (#22886)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-12 18:21:48 +08:00
67e4528018 executor: initialize expensive query handler on domain creation (#21340) 2021-03-11 16:10:55 +08:00
d29febf93f session,util/sqlexec: clean up code for deprecated API (#23153) 2021-03-08 17:48:54 +08:00
707cb0a942 kv: unify the BeginWith... function into one (#23130) 2021-03-05 17:56:56 +08:00
e1004a2ccb *: modify the switch to control global stats (#22866) 2021-03-01 14:18:30 +08:00
daf3337a43 oracle: make @@txn_scope only support local and global (#22784) 2021-02-25 15:26:03 +08:00
e360454b2d util: fix Host column of show processlist to host_name:client_port format (#22707) 2021-02-24 18:54:03 +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
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
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
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
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
xhe
ae0057da71 *: preventing SQL injection (#22499)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-26 18:52:08 +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