Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Nov 25, 2020
1 parent 8fe8469 commit e1bbb74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions executor/partition_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ partition p3 values less than maxvalue)`)
func (s *partitionTableSuite) TestSelectLockOnPartitionTable(c *C) {
tk := testkit.NewTestKit(c, s.store)
tk.MustExec("use test")
tk.MustExec("drop table if exists pt")
tk.MustExec(`create table pt (id int primary key, k int, c int, index(k))
partition by range (id) (
partition p0 values less than (4),
Expand Down
2 changes: 1 addition & 1 deletion executor/table_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (e *TableReaderExecutor) Next(ctx context.Context, req *chunk.Chunk) error
// add the partition ID as an extra column. The SelectLockExec need this information
// to construct the lock key.
physicalID := getPhysicalTableID(e.table)
if physicalID != e.table.Meta().ID && e.extraPIDColumnIndex.valid() {
if e.extraPIDColumnIndex.valid() {
fillExtraPIDColumn(req, e.extraPIDColumnIndex.value(), physicalID)
}

Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b/go.mod h1:dA0hQrY
github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo=
github.com/segmentio/kafka-go v0.2.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/sergi/go-diff v1.0.1-0.20180205163309-da645544ed44 h1:tB9NOR21++IjLyVx3/PCPhWMwqGNCMQEH96A6dMZ/gc=
github.com/sergi/go-diff v1.0.1-0.20180205163309-da645544ed44/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/shirou/gopsutil v2.19.10+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
github.com/shirou/gopsutil v2.20.3+incompatible h1:0JVooMPsT7A7HqEYdydp/OfjSOYSjhXV7w1hkKj/NPQ=
Expand Down

0 comments on commit e1bbb74

Please sign in to comment.