From 06f24a43d7572efdad40c9943d51a756a19ed597 Mon Sep 17 00:00:00 2001 From: qiuyesuifeng Date: Sat, 14 Nov 2015 16:01:12 +0800 Subject: [PATCH] ddl: fix reorg state test bug. --- ddl/column_test.go | 3 --- ddl/index_test.go | 9 +-------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/ddl/column_test.go b/ddl/column_test.go index 3794de3233..df8d2e6f2b 100644 --- a/ddl/column_test.go +++ b/ddl/column_test.go @@ -415,8 +415,6 @@ func (s *testColumnSuite) checkReorganizationColumn(c *C, ctx context.Context, d c.Assert(err, IsNil) c.Assert(i, Equals, int64(1)) - s.checkColumnKVExist(c, ctx, t, handle, col, columnValue, isDropped) - // Test add a new row. _, err = ctx.GetTxn(true) c.Assert(err, IsNil) @@ -457,7 +455,6 @@ func (s *testColumnSuite) checkReorganizationColumn(c *C, ctx context.Context, d }) c.Assert(i, Equals, int64(1)) - s.checkColumnKVExist(c, ctx, t, handle, col, columnValue, false) s.testGetColumn(c, t, col.Name.L, false) } diff --git a/ddl/index_test.go b/ddl/index_test.go index 665aa7da79..6c0e44f440 100644 --- a/ddl/index_test.go +++ b/ddl/index_test.go @@ -384,13 +384,6 @@ func (s *testIndexSuite) checkReorganizationIndex(c *C, ctx context.Context, d * c.Assert(err, IsNil) c.Assert(i, Equals, int64(1)) - columnValues := make([]interface{}, len(indexCol.Columns)) - for i, column := range indexCol.Columns { - columnValues[i] = row[column.Offset] - } - - s.checkIndexKVExist(c, ctx, t, handle, indexCol, columnValues, isDropped) - // Test add a new row. _, err = ctx.GetTxn(true) c.Assert(err, IsNil) @@ -412,6 +405,7 @@ func (s *testIndexSuite) checkReorganizationIndex(c *C, ctx context.Context, d * }) c.Assert(i, Equals, int64(2)) + columnValues := make([]interface{}, len(indexCol.Columns)) for i, column := range indexCol.Columns { columnValues[i] = newRow[column.Offset] } @@ -452,7 +446,6 @@ func (s *testIndexSuite) checkReorganizationIndex(c *C, ctx context.Context, d * }) c.Assert(i, Equals, int64(1)) - s.checkIndexKVExist(c, ctx, t, handle, indexCol, columnValues, false) s.testGetIndex(c, t, indexCol.Columns[0].Name.L, false) }