Merge pull request #588 from pingcap/qiuyesuifeng/fix-reorg-state-test-bug

ddl: fix reorg state test bug.
This commit is contained in:
qiuyesuifeng
2015-11-14 16:26:46 +08:00
2 changed files with 1 additions and 11 deletions

View File

@ -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)
}

View File

@ -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)
}