Commit Graph

432 Commits

Author SHA1 Message Date
d49573e050 *: refine some logs with incorrect collation (#16275) 2020-04-22 15:23:48 +08:00
a9091029b8 *: fix lost index bug of insert on duplicate key update (#16672)
Fix issue #16669

When check the untouched index, we should also check the memory-buffer in the session too.
2020-04-22 11:11:14 +08:00
7106b189df session: refine record execution duration metric (#16453) 2020-04-17 21:50:28 +08:00
69dd97d3f8 server: use single flight to load global variables (#16489) 2020-04-17 21:38:40 +08:00
b8494e7a11 expression: support disable expression pushdown based on store… (#16389) 2020-04-17 14:53:25 +08:00
1f24b9e03b executor, infoschema, util: add sum_errors and sum_warnings to statement summary tables (#16456) 2020-04-17 10:31:35 +08:00
dc139aedb4 server,session: code refactor for multiple statements in one query (#16056) 2020-04-14 20:16:43 +08:00
867a812c75 session: add compile and execute time metric for prepare statement (#16338) 2020-04-14 17:32:32 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
8025cc29b8 test: add one kill query test (#16231) 2020-04-09 17:21:13 +08:00
af0a49cb7a [store/tikv] support batch coprocessor for TiFlash (#16030) 2020-04-09 13:01:09 +08:00
c81e903804 *: use the revertable sandbox to buffer mutations (#15931) 2020-04-03 14:54:27 +08:00
94fb1bf18d txn: stop more statement executions if pessimistic transaction ttl manager timed out (#15877) 2020-03-31 11:53:41 +08:00
cad52c1f6e *: do not lock the non-exists keys in RC isolation (#15803) 2020-03-31 11:11:12 +08:00
9fdc5531ce session: directly get txn from session in runStmt (#15676) 2020-03-30 22:09:41 +08:00
fc4ef481cb session: fix data race between stats loop update and bind info… (#15852) 2020-03-30 21:29:52 +08:00
08c4c665fd session: initialize session bind handler when creating session according to createSessionWithOpt (#15724) 2020-03-30 14:48:10 +08:00
22a585cfec bindinfo, session: mute internal logs during capture bindings (#15802) 2020-03-30 12:57:05 +08:00
e42c825979 server, session: refine mysql handshake error log (#15731) 2020-03-28 19:18:35 +08:00
a888c6d06a *: add the tid to the schema-change related tables only when keys need to be locked (#15698) 2020-03-26 11:17:38 +08:00
6905549bf6 *: support more system variables in statement summary (#15508) 2020-03-25 16:07:10 +08:00
5282d089c7 executor: support generated column on point get and batch point get (#15544) 2020-03-23 14:21:35 +08:00
bbac2b2fe4 executor: Improve the performance of aggFuncSum by using sliding window (#14887) 2020-03-23 13:29:44 +08:00
3906d5a4da store: convert request error to warning when cop request to tidb (#15410) 2020-03-23 13:19:39 +08:00
7ceb49f5bc *: do not add extra locks for optimistic transactions (#15558) 2020-03-23 09:19:30 +08:00
4e6151ee00 stmtsummary: cache digest in CachedPlanExec (#15464) 2020-03-21 17:48:01 +08:00
df6f378267 stmtsummary: add a switch to decide whether capture internal q… (#15461) 2020-03-20 17:39:11 +08:00
7e570b1512 *: read committed transaction gets a wrong snapshot with subquery (#15471) 2020-03-19 12:01:22 +08:00
28869fa024 serssion, server: fix the correctness of the query field in the DDL job (#15435) 2020-03-18 11:06:13 +08:00
af861eeba2 planner: support hint USE_CASCADES(true|false) to use/disuse cascades planner in a single query (#15352) 2020-03-16 19:35:24 +08:00
1b3b6f0e80 *: make 'password' in mysql.user as a generated column of authentication_string (#15311) 2020-03-16 15:26:24 +08:00
6f95edbaee session: reorganize session unit test suite (#15279) 2020-03-16 12:20:23 +08:00
f96884af93 *: fix BatchPointGet return empty value for already locked key. (#15365) 2020-03-14 18:43:31 +08:00
696e00b80b session: fix the txn.Size() function for TxnState (#15282)
TxnState implements the kv.Transaction, its Size() method should
consider the cached transaction data.
2020-03-12 19:54:10 +08:00
35468b1e39 txn: get txn status does not block if txn not found (#15300) 2020-03-12 15:14:04 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00
0abbd9865d server: make unique index could be used in fast path for batch point get, and do lock keys (#15266) 2020-03-11 14:32:04 +08:00
248be5bba5 planner: push down Lock to PointGet and BatchPointGet (#15257) 2020-03-11 13:58:32 +08:00
9905a26ea0 txn: fix UpdateForUpdateTS for non autocommit pessimistic mode (#15244) 2020-03-10 17:11:39 +08:00
2d5d2fde27 *: fix the same future wait twice in RC transaction (#15117) 2020-03-06 00:05:54 +08:00
e9ba1446f6 executor: support SELECT FOR UPDATE for BatchPointGet (#15129) 2020-03-05 19:47:16 +08:00
50d6b26899 test: stablize read lock check case (#15094) 2020-03-04 23:06:16 +08:00
d9120981fa mocktikv: change pessimistic lock return value skip op_lock in mocktikv (#15132) 2020-03-04 22:29:16 +08:00
8e10e90e31 *: add config diagnose and fix warning (#15107) 2020-03-04 16:58:46 +08:00
92438644d9 session: add test case for retrying union statement (#15051) 2020-03-04 11:17:13 +08:00
9ae471c0ee *: fix data race for plan cache (#14756) 2020-03-03 16:03:09 +08:00
b3469e7964 *: fix a bug that the pessimistic lock doesn't work on a partition (#14921)
physicalID should be used if 'select for update' works on a
partitioned table.
2020-03-03 15:06:45 +08:00
e7272e08ed session: fix mis-spell (#15070) 2020-03-02 23:52:39 +08:00
7beea97940 mocktikv: add write op_lock for mocktikv (#14991) 2020-03-02 15:53:41 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00