Commit Graph

233 Commits

Author SHA1 Message Date
xia
c120ba8dab *: address comments 2015-12-09 14:51:04 +08:00
xia
9aca8dc288 *: update IterRecords and RowWithCols 2015-12-09 13:21:25 +08:00
xia
200b35b061 Merge branch 'master' into zimuxia/inspect-kv
Conflicts:
	kv/kv.go
2015-12-09 12:27:01 +08:00
xia
9a348f0a14 inspectkv: support inspect kv 2015-12-09 12:11:24 +08:00
307993205b kv, store: remove MvccSnapshot 2015-12-07 10:40:19 +08:00
97e328bf44 Merge pull request #636 from pingcap/shenli/index-id
*: Add ID to IndexInfo and use IndexID in prefix instead of IndexName
2015-11-30 19:39:59 +08:00
cc1af7573b ddl: creating database/table uses public state directly. 2015-11-30 12:40:58 +08:00
173aad00bb Merge pull request #647 from pingcap/go-vet-happy
*: Make go vet --shadow happy
2015-11-28 17:55:23 +08:00
b66afe8443 *: cleanup prefix 'z' 2015-11-27 20:03:54 +08:00
0de45f2866 Merge branch 'master' into disksing/refactor-lasetinsertid 2015-11-27 19:09:33 +08:00
8c0a4d50ae *: add test flag to skip long time DDL test. 2015-11-27 16:20:18 +08:00
9426554819 *: Address comment 2015-11-27 15:57:32 +08:00
f024f02dbd *: Make go vet --shadow happy
Also do some clean up.
2015-11-27 15:47:05 +08:00
bb5d702d57 *: Address comment 2015-11-27 15:35:19 +08:00
83a73341ce ddl: Add index id when adding index with ddl 2015-11-27 15:20:16 +08:00
1a28ff83a0 Merge remote-tracking branch 'origin/master' into shenli/index-id
Conflicts:
	ddl/ddl.go
	kv/index_iter.go
2015-11-27 14:28:59 +08:00
75352d81a4 Merge branch 'master' into disksing/refactor-lasetinsertid
Conflicts:
	ddl/ddl_test.go
	plan/plans/from_test.go
	session_test.go
	stmt/stmts/insert.go
	stmt/stmts/replace.go
2015-11-27 13:29:51 +08:00
b9135eadb4 *: Add ID to IndexInfo and use IndexID in prefix instead of IndexName 2015-11-24 21:58:26 +08:00
42390a18ff ddl: drop index once to reduce conflict retry. 2015-11-23 16:48:11 +08:00
e4b8a64df4 ddl: delete should skip ErrNotExist error. 2015-11-23 16:47:22 +08:00
e1d30ae367 table: remove dependency on 'LastInsertID' 2015-11-23 13:32:34 +08:00
01a7171220 *: Make go vet --shadow happy 2015-11-23 13:02:56 +08:00
xia
fd7eeded6c Merge remote-tracking branch 'origin/siddontang/dev-schema-change' into zimuxia/show_status 2015-11-20 13:05:49 +08:00
c959346213 ddl: cleanup and notify job done after transaction. 2015-11-20 09:36:42 +08:00
b443304d67 ddl: Address comment. 2015-11-18 21:56:50 +08:00
xia
200686bd57 *: rename mockStatist to mockStatistics, and
do tiny clean
2015-11-18 13:33:38 +08:00
4a73a35f78 ddl: update reorg snapshot version and then run it next time.
If we run reorganization immediately, the snapshot version is not
updated in meta, so if at this time, server crashes, the snapshot
version is lost but we may have backfilled some wrong data.
So we must update the snapshot version firstly, and then run
reorganization work.
2015-11-18 12:57:58 +08:00
xia
a7531125e8 Merge remote-tracking branch 'origin/siddontang/dev-schema-change' into zimuxia/show_status
Conflicts:
	ddl/stat.go
2015-11-18 10:50:19 +08:00
9c6b27877d *: must wait 2 * lease schema lease time when running job. 2015-11-18 09:53:14 +08:00
xia
f4ca52ea36 Merge remote-tracking branch 'origin/siddontang/dev-schema-change' into zimuxia/show_status
Conflicts:
	ddl/ddl.go
	domain/domain.go
2015-11-17 15:56:52 +08:00
xia
7b41184fe6 *: rename statist to statistics 2015-11-17 15:12:53 +08:00
xia
051a476b2a *: update code structure 2015-11-17 14:49:55 +08:00
a724feaaa9 ddl: close should wait reorg coroutine returns too. 2015-11-17 11:57:44 +08:00
6019d1f503 ddl: support GetLease and set lease after closing worker. 2015-11-17 09:09:26 +08:00
c869f3ce7a ddl: don't remove reorg info.
if we remove reorg info but don’t update the DDL status when crashed,
another server will start a whole reorganization again.
2015-11-16 20:34:49 +08:00
xia
6ba84b78f4 *: fix using stat when ddl is closed 2015-11-16 14:35:54 +08:00
xia
1b721ab994 Merge remote-tracking branch 'origin/siddontang/dev-schema-change' into zimuxia/show_status
Conflicts:
	ddl/ddl.go
	session.go
2015-11-16 13:27:38 +08:00
xia
04c9ea4966 *: update test and pass golint 2015-11-16 12:00:32 +08:00
7d0d8967ac ddl: let outer control DDL worker start/stop. 2015-11-16 11:03:18 +08:00
e667be893b *: add test 2015-11-16 09:59:14 +08:00
0ddf6eb415 *: add stat interface and corresponding implememtation 2015-11-16 09:55:17 +08:00
06f24a43d7 ddl: fix reorg state test bug. 2015-11-14 16:01:12 +08:00
xia
45f91fd417 *: support show status 2015-11-13 21:01:13 +08:00
737215bbf5 ddl: add reorg owner test 2015-11-13 17:24:08 +08:00
349f69fb2f ddl: no need to wait reorg done if lease > 0 2015-11-13 17:02:39 +08:00
b0a09e0525 ddl: just test if owner before to run reorganization. 2015-11-13 15:52:19 +08:00
30f1fe0771 *: Address comment. 2015-11-12 21:04:14 +08:00
xia
915ce84474 ddl: update log 2015-11-12 20:33:56 +08:00
c601a25d0b Merge remote-tracking branch 'origin/siddontang/dev-schema-change' into siddontang/dev-schema-change 2015-11-12 15:34:08 +08:00
dd087d40c2 ddl: re-check condition not match error. 2015-11-12 15:34:04 +08:00