Commit Graph

56 Commits

Author SHA1 Message Date
0147e0cece ddl: refine cancel/rollback ddl job code. (#8858) 2019-01-03 17:11:14 +08:00
ffa375fdc2 ddl: fix cancel drop table/database ddl job bug. (#8537)
* ddl: fix cancel drop table bugs
2018-12-26 10:34:07 +08:00
c84537dc94 ddl: fix drop database bug if the database has partition table (#8319) 2018-11-19 14:21:13 +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
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
42675d97fb ddl: adjust the structure of ddl (#6449) 2018-06-14 17:13:50 +08:00
bd5309437e ddl, model: clean up (#5583)
* ddl: rename updateTableInfo to updateVerAndTblInfo and add finish function
2018-01-15 13:16:01 +08:00
5a555703c0 *: garbage collect useless stats info (#5587) 2018-01-11 17:10:30 +08:00
35fe2cae42 ddl, statistics: resolve the package dependency. (#4960) 2017-10-31 17:13:30 +08:00
6a8225787f *: update job state name (#4818) 2017-10-19 14:44:57 +08:00
1eebb87156 ddl: remove backgroud worker, use delete-range to speed up something. (#3993) 2017-08-09 16:59:25 +08:00
dff73cc6e4 *: Modify the Makefile for go vet (#3900) 2017-07-30 23:02:52 -05:00
64830c93b7 ddl: Use etcd to synchronize schema version (#3322) 2017-05-27 16:42:19 +08:00
31b31a0f03 Add err check for unused err (#3236)
* add err check for unused err
2017-05-10 07:19:51 -05:00
ef7bdb0d1f ddl, statistics: support drop table and schema. (#3106) 2017-04-22 16:48:28 +08:00
d0a9ab5abe ddl: Fix error format and clean up error trace. (#2500) 2017-01-18 23:58:53 +08:00
6bc6f7e98b *: Add the field of history information in job structure (#2046) 2017-01-05 16:34:39 +08:00
ea894e8b77 *: Add a function GenByArgs for Error (#2033)
*: Add a function GenByArgs for Error
2016-11-27 13:18:43 +08:00
bb70acda13 ddl: rename batchSize to batchCnt (#2005) 2016-11-15 16:05:25 +08:00
5a1d8d4b2c ddl: minor clean up 2016-11-15 13:06:27 +08:00
b4e3e58693 *: Clean up (#1928)
* ddl: remove useless code, add and update comments
2016-11-03 11:40:14 +08:00
915033e7a9 ddl: Record the start key of the batch job in delete keys (#1888) 2016-10-31 20:11:49 +08:00
b80ba788ca ddl: Add dbInfo and tblInfo in some operations of DDL (#1870) 2016-10-26 16:10:43 +08:00
d04dea2c57 *: use schema diff to reduce memory allocation (#1858)
When schema version has changed, we don't need to reload all schemas, only
modified table need to be reloaded, this will reduce the pressure on Go garbage collector.

Also removed used map in *inforSchema.
2016-10-24 15:17:44 +08:00
64e181286a ddl: Add table infomation and schema version to history job (#1857) 2016-10-24 14:58:17 +08:00
5df5085e33 *: Add row count field in a job, fix a drop schema bug and pass race (#1759) 2016-09-28 18:11:40 +08:00
536d78ee2b ddl: Fix error code bug and update ddl test (#1700) 2016-09-08 11:28:52 +08:00
xia
d17e99073d *: unify errors in ddl package 2016-03-29 11:37:33 +08:00
xia
8b362f35fc *: address comments 2016-02-01 20:09:33 +08:00
xia
7a3daf5dca *: address comments and add test 2016-01-21 19:44:42 +08:00
xia
c789674315 ddl: add test 2016-01-20 12:19:54 +08:00
xia
291c5689e7 ddl: reduce the number of arguments the getTable takes 2016-01-20 12:19:26 +08:00
xia
7d66ae58ac *: update drop database/table operation 2016-01-19 11:43:31 +08:00
xia
8ecaf67d9a ddl: add tasks 2016-01-19 11:43:31 +08:00
fbe684270b *: Use schema errors in ddl 2015-12-23 16:10:15 +08:00
56fff40d62 *: Address comment 2015-12-13 22:49:40 +08:00
f9305e38c8 *: Address comment 2015-12-11 23:17:11 +08:00
5e52c60240 *: Fix bug for select @@character_set_database
1. Add charset info when create schema
2. Set charset variable when run use statement
Fix: https://github.com/pingcap/tidb/issues/706
2015-12-11 14:29:32 +08:00
7336360a59 *: return error instead of log.Fatal for TableFromMeta 2015-12-09 14:30:38 +08:00
cc1af7573b ddl: creating database/table uses public state directly. 2015-11-30 12:40:58 +08:00
4eb34f69ce *: distinguish write/delete reorganization state.
we must distinguish different reorganization state after write only/
delete only state.
2015-11-11 13:29:06 +08:00
a21673dff3 *: merge master and fix conflict. 2015-11-06 16:33:50 +08:00
598dfb2154 ddl: address comment. 2015-11-04 18:28:25 +08:00
xia
87e7c0a2a6 *: rename reorgnization to reorganization 2015-11-04 14:40:36 +08:00
5fd01e9745 *: drop schema/table/index supports batch delete. 2015-11-03 12:17:47 +08:00
98160fc8ae ddl: table Truncate can also remove all indices data. 2015-11-02 14:36:27 +08:00
9af7818fc3 ddl: fix compile error. 2015-10-30 21:05:26 +08:00
f4e618f1c1 *: merge master and fix conflict. 2015-10-29 21:39:45 +08:00
32fe0db38b *: add create/drop index 2015-10-28 22:00:30 +08:00