Commit Graph

46 Commits

Author SHA1 Message Date
f522de2e8f ddl: support "or replace" option when create view (#8856) 2019-01-16 19:54:22 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
9ec7515743 *: Add few error checks in tests, clean error messages and fix a misspell (#8101) 2018-10-31 18:50:43 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
6815dec5b3 ddl: implement reorganize for table partition when adding index (#6814)
* Handle DDL reorganization for table partitions one by one
* Reorganize metadata changed from handle to startHandle, endHandle, partitionID
2018-07-27 17:49:21 +08:00
8b913c95ef *: rename "GetDDLJob" to "GetDDLJobByIdx" (#7129) 2018-07-25 14:28:45 +08:00
da6f0c1edd ddl: initial support for parallel DDL (#6955) 2018-07-25 10:48:38 +08:00
998f696421 *: support set relation job (#6206) 2018-04-13 10:30:45 +08: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
de9c192cba *: move mocktikv from tikv pkg (#5834) 2018-02-08 23:31:29 +08:00
132626e4f6 ddl: fix rawArgs is overwritten (#5531)
* ddl: fix rawArgs is overwritten
2018-01-02 17:03:58 +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
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
5340b67466 remove all stuff about backgroud DDL worker. (#4227) 2017-08-18 16:34:28 +08:00
7908193b70 *: Fix rename table auto id conflict problem (#3493) 2017-06-16 16:46:27 +08:00
3b9e5de9a5 *: Remove the useless code about DDL owner info (#3472)
* *: remove useless code about the ddl owner
2017-06-15 12:32:27 +08:00
6f95d18e01 *: remove a useless argument (#2319) 2016-12-25 16:18:53 +08:00
1c6c145f94 *: Set custom verbose flag to true (#1956)
* *: set custom verbose flag to true

* *: update .gitignore
2016-11-05 18:00:13 +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
662cb41a1f ddl: write DDL binlog when DDL is done. (#1850)
Previous implementation write DDL binlog as early as when job is added to the queue,
but DDL may be canceled, we should not sync the ddl at that time, there would be a long
 time waiting for the DDL to be done.

After this commit, DDL binlog is written right before the DDL job is done, so we don't need to wait.

Also expose a 'GetAllHistoryJobs' method in meta which will be used later.
2016-10-20 14:03:33 +08:00
efc96a73a6 *: Support set dist sql concurrency by set system variable (#1795) 2016-10-17 15:12:17 +08:00
6819e22c3c meta, structure: support snapshot meta. (#1739)
Snapshot meta will be used to load history schema, so we can
support history read with changed schema version.
2016-09-20 11:11:10 +08:00
08034540f0 *: Add leak test
* *: add leak test and tiny clean up

* *: unify test format and add leak test

Conflicts:
	store/localstore/compactor_test.go
	mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
xia
ecad0210be *: address comments 2016-02-03 17:54:22 +08:00
xia
7a3daf5dca *: address comments and add test 2016-01-21 19:44:42 +08:00
xia
79aaefbbc0 *: rename job to ddlJob, rename task to bgJob 2016-01-20 12:19:54 +08:00
xia
c789674315 ddl: add test 2016-01-20 12:19:54 +08:00
xia
f239c25b15 *: update test 2016-01-20 12:19:54 +08:00
d0caf9d166 *: save reorganization processed handle in meta. 2015-11-10 11:12:03 +08:00
9aeb3b27ec *: reset lease time after bootstrap 2015-11-04 19:16:49 +08:00
0c9a4e324b *: cleanup meta and structure. 2015-10-29 17:25:05 +08:00
b13d6f29c6 *: Address comment. 2015-10-23 17:10:25 +08:00
501e3a7a09 *: Address comment 2015-10-23 16:49:01 +08:00
4fac573382 *: simplify DDL meta function 2015-10-23 16:34:21 +08:00
deaeacddba *: simplify meta function 2015-10-23 16:09:55 +08:00
791f0d6f78 *: refactor with meta API. 2015-10-21 14:46:58 +08:00
e3c8079cd8 *: update meta structure. 2015-10-21 10:41:48 +08:00
835b53a118 *: warp kv RunInNewTxn and support get global/table id. 2015-10-21 09:05:06 +08:00
ba475f8aa9 *: add base meta structure. 2015-10-21 00:12:27 +08:00
22143ecaf1 meta: Disable generating global ID concurrently. 2015-10-15 17:03:39 +08:00
9d0420e729 Update tests for meta change
Conflicts:
	meta/meta.go
2015-10-07 12:01:56 +08:00
xia
9238a23f27 *: pass go vet
pass go vet
2015-09-06 18:45:42 +08:00
0d6f270068 Add files 2015-09-06 12:08:47 +08:00