Commit Graph

72 Commits

Author SHA1 Message Date
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
72794461eb *: support read only lock (#21100)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-25 10:06:54 +08:00
91db54ef8e ddl: Support multiple table rename (#19962) 2020-10-28 11:36:03 +08:00
79711ad6b8 ddl: support alter sequence (#20405) 2020-10-14 17:06:11 +08:00
3cd5260773 ddl: collect actionTypes for schema change (#18195)
* record action types in schema change history

* change comments

* remove comment

* refactor, remove some params and return values

* change value to pointer, remove useless comments

* refactor comments

* change return value

* refactor

* remove all info

* fix action type append

* update comment

Co-authored-by: Lynn <zimu_xia@126.com>
2020-07-08 11:41:09 +08:00
c13e4ab1be executor: check gc safe time first when iterate the history ddl jobs (#18380) 2020-07-06 17:13:33 +08:00
389561922e executor: optimize the get snapshot table meta for tiflash/replica HTTP API (#17969)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-06-12 16:35:19 +08:00
e053ce02ab *: Fix HTTP api get TiFlash replica failed cause by concurrent DDL. (#17872) 2020-06-10 14:27:12 +08:00
5a0787dfa9 executor: fix flashback table faild in uppercase database name (#17093) 2020-05-13 14:55:57 +08:00
90bfe841ae server: add drop/truncate table tiflash replica info in /tiflash/replica http api (#15699) 2020-04-24 16:00:48 +08:00
dda190a830 ddl: fix repeatedly recover table error (#16116) 2020-04-08 11:03:31 +08:00
12e1606b1c executor: fix failing to drop current database when new-collation is enabled (#15715) 2020-03-30 09:13:46 +08:00
783c2de9f0 ddl: support recover truncate table (#15398) 2020-03-18 15:38:02 +08:00
cab1522bef executor: refine flashback table error message (#15331) 2020-03-16 12:50:40 +08:00
a528e60e3b *: add auto_random id cache for statement retrying and table recover (#14711) 2020-02-19 18:53:03 +08:00
25952d4a8f ddl, executor, server: add drop if exists warnings (#14807) 2020-02-18 11:40:48 +08:00
5c76f58c2e *: remove until timestamp syntax in flashback statement since we not support this (#14604) 2020-02-07 17:58:40 +08:00
b25c82452f ddl: support drop sequence in TiDB (#14442) 2020-01-20 15:49:04 +08:00
ff096ee2cf ddl : support create sequence in TiDB. (#14112) 2020-01-09 19:38:14 +08:00
ebec6de11f *: rename IndexColName to IndexPartSpecification (#13941) 2019-12-10 14:22:44 +08:00
9bd7a6de90 *: support flashback dropped/truncated table (#13109) 2019-12-03 19:49:48 +08:00
97a4fae7d2 ddl : support ADMIN REPAIR TABLE to override bad tableInfo in meta & supply a REPAIR MODE for safely restart. (#12046) 2019-12-03 13:50:26 +08:00
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
9f01c7b497 ddl: handle index key type in CreateIndex 2019-08-16 00:00:29 +08:00
388ce88743 ddl: refine ddl error when do ddl error cause by infoschema is changed (#11308) 2019-07-23 16:18:48 +08:00
c8794803b5 *: add admin cleanup table lock syntax support (#10423) 2019-07-10 12:54:09 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
a935d93990 *: support IF EXISTS/IF NOT EXISTS for some DDLs (#10723) 2019-06-24 19:46:26 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
612936bbd4 *: Support LOCK/UNLOCK TABLES feature (#10343) 2019-06-18 15:38:04 +08:00
5c21fa4b43 ddl: implement ALTER DATABASE to alter charset/collation (#10393) 2019-05-15 17:32:21 +08:00
8c118cecc2 *: clean code for restore table (#9090) 2019-04-08 15:21:37 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
f738ba24ad executor: replace logger with zap logger (#9521) 2019-03-14 15:14:38 +08:00
365264cd21 ddl: add restore deleted table (#7937) 2019-01-16 15:37:33 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
e646276f4b planner,executor: basic support for DROP_VIEW (#8758) 2019-01-04 10:53:02 +08:00
ef7082da1c ddl, executor: fix rename table compatibility (#8709) 2018-12-22 22:19:41 +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
4e8c424718 *: basic support for CREATE_VIEW (#8571) 2018-12-18 20:17:27 +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
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
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
38274c39c3 *: fix the issue of executing DDL after executing SQL failure in txn (#8044)
* ddl, executor: fix the issue of executing DDL after executing SQL failure in txn
2018-10-25 15:52:13 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
55af7e1472 executor: forbid user to drop important system table (#7471) 2018-08-29 23:40:53 +08:00
5404e2eaae ddl: add admin check before drop table using building flag. (#7343) 2018-08-14 21:44:57 +08:00