Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions ddl/column_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}

Expand Down
9 changes: 1 addition & 8 deletions ddl/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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]
}
Expand Down Expand Up @@ -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)
}

Expand Down