Commit Graph

51 Commits

Author SHA1 Message Date
d184120a99 ddl: use kv.Key as reorg progress marker instead of kv.Handle (#20908) 2020-11-11 18:47:23 +08:00
fd84a91895 ddl, tikv: add delay during AddIndex DDL and remove schema check for async commit (#20550) 2020-10-28 11:48:34 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
6c305e2a49 ddl: apply common handle to index reorganization (#17906) 2020-06-16 09:52:39 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +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
c2538facc9 ddl: Support the operation of adding multi-columns (#15540) 2020-04-08 13:22:25 +08:00
f036eecc9d ddl: support create/drop expression index (#14117) 2020-01-07 10:29:39 +08:00
cbf7415873 *: add errcode for structure, tablecodec, admin files (#14054) 2019-12-16 12:07:02 +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
d811fbb461 util: remove some unused code in admin package (#13742) 2019-11-27 14:37:25 +08:00
3a48a48630 *: remove the assertion proto (#13732)
The assertion proto was introduced to verify the data consistency, but I find
it's complex and hard to achieve that goal. Adding additional assertions just
makes more memory occupation, especially in the large transaction.
So it's better to remove it.
2019-11-26 22:58:49 +08:00
df1baca19f *: support adding/dropping the primary key by a configuration (#13229) 2019-11-15 01:10:51 +08:00
8ed2e1bf45 util/admin: fix the error of "invalid list index" when cancel ddl jobs (#12402) 2019-10-13 20:39:03 +08:00
59e3eb75cd *: speed up the operation of "admin check table" (#8572) 2019-07-31 17:11:30 +08:00
e1f2b3728d *: make assertion check more reasonable (#10424)
Make sure there are no "ASSERTION fail" logs in session and executor unit test
2019-07-04 16:20:38 +08:00
f5fb5aa32d util/admin: add unit test and move integration test. (#10013) 2019-04-04 16:19:07 +08:00
3910a720df *: add assertion in kvproto to check data consistency (#9180) 2019-03-08 16:49:31 +08:00
e06c87d3c1 add an option for AddRecord and Create (#8884) 2019-01-02 11:30:53 +08:00
bd69b15e79 *: add the error check (#8770) 2018-12-24 22:22:00 +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
7056bb0d32 executor, session: refine insert unsigned bigint autoIncreID (#8181) 2018-12-18 23:01:10 +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
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
bc97e2d616 plan, util/admin: fix admin check table error when a column of index is virtual generated (#6817) 2018-08-28 12:42:55 +08:00
3a3845fb24 *: support admin show ddl (#7274) 2018-08-07 18:23:41 +08:00
5a0fd2db46 ddl: GetDDLJobs should return a sort job. (#7254) 2018-08-06 21:32:29 +08:00
5f7abc84fe *: fix panic that upgrade from old version TiDB. (#7136) 2018-07-24 18:59:29 +08:00
44e34bd304 *: index refactor for table partition (#7062) 2018-07-17 14:01:50 +08:00
461663652d *: support 'admin show ddl jobs <number>' grammar (#7028) 2018-07-12 14:49:14 +08:00
a8feebee39 executor: make admin check table error more readable. (#6617) 2018-06-05 14:16:30 +08:00
64e3acadee admin: admin check table do not use the timezone of session, it leads to false alarm. (#6699) 2018-06-04 14:14:04 +08:00
defccc1acd executor: fix admin check table bug when the column is nil and has a default value (#6142) 2018-03-27 17:35:21 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
f3b8b04b69 util/admin: clean up and add comparing table and index count func (#5869) 2018-02-12 18:27:18 +08:00
de9c192cba *: move mocktikv from tikv pkg (#5834) 2018-02-08 23:31:29 +08:00
eddff3429a *: importing data reduce memory allocations. (#5549) 2018-01-07 12:48:07 +08:00
ecbd60c3ff *: add arguement StatementContext to Encode functions. (#5566) 2018-01-06 17:31:08 +08:00
36d9b61365 *: AddIndex skip checking unique constraint when TiDB is importing data. (#5535) 2018-01-02 20:08:49 +08:00
cbceac701d *:fix the bug about auto-increment key after renaming a table from old DB to the another DB (#5248) 2017-11-29 15:31:16 +08:00
14ed94132c executor: fix issue #5132, update handle id with some other unique keys report Duplicate keys. (#5138) 2017-11-20 11:06:28 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
030b3628d5 *: Remove the check of initialized auto ID (#4971) 2017-11-02 12:24:19 +08:00
12bf655413 *: change some tests' storages to mock-tikv (#4961) 2017-10-31 18:18:31 +08:00
37681cf435 *: opentracing for two phase commit (#4900) 2017-10-26 17:43:45 +08:00
4550e91919 ddl: Fix rename table bug (#4862) 2017-10-26 12:41:47 +08:00