Skip to content

Commit fd59822

Browse files
committed
fix test
1 parent 687aa52 commit fd59822

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎pkg/applier/message/dml_message.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import (
2626
// message after it has been spilled. One input can be attached to multiple
2727
// DMLMessages; Attach assigns each message its ordinal in that input.
2828
type DMLMessageData struct {
29-
ID uint64
30-
Key []byte
31-
Value []byte
29+
ID uint64
30+
Key []byte
31+
Value []byte
3232
Restorer *DMLMessageRestorer
3333

3434
nextDMLIndex uint64

‎pkg/applier/message/event_group_test.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ func TestEventsGroupAllowsOversizeSegment(t *testing.T) {
636636
require.Nil(t, store.activeSegment)
637637
require.Greater(t, store.PendingBytes(), config.segmentBytes)
638638

639-
messages, hasMore, _, err := resolveIntoBatch(group,
639+
messages, hasMore, _, err := resolveIntoBatch(group,
640640
math.MaxUint64, nil, ResolveLimit{MaxBytes: 1, MaxMessages: 1})
641641
require.NoError(t, err)
642642
require.False(t, hasMore)
@@ -673,7 +673,7 @@ func TestEventsGroupResolveIntoBatchBounds(t *testing.T) {
673673
require.NoError(t, group.AppendMessage(attachTestDMLMessageData(newTestDMLMessage(commitTs))))
674674
}
675675

676-
messages, hasMore, _, err := resolveIntoBatch(group,
676+
messages, hasMore, _, err := resolveIntoBatch(group,
677677
math.MaxUint64, nil, ResolveLimit{MaxMessages: 2})
678678
require.NoError(t, err)
679679
require.True(t, hasMore)
@@ -682,7 +682,7 @@ func TestEventsGroupResolveIntoBatchBounds(t *testing.T) {
682682
messages[0].GetCommitTs(), messages[1].GetCommitTs(), messages[2].GetCommitTs(),
683683
})
684684

685-
messages, hasMore, _, err = resolveIntoBatch(group,
685+
messages, hasMore, _, err = resolveIntoBatch(group,
686686
math.MaxUint64, nil, ResolveLimit{MaxBytes: 1})
687687
require.NoError(t, err)
688688
require.False(t, hasMore)

‎pkg/sink/codec/common/table_info_provider.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ import (
2525
timodel "github.com/pingcap/tidb/pkg/meta/model"
2626
)
2727

28+
// accessKey identifies a table by its original name, so T and t stay distinct.
29+
type accessKey struct {
30+
schema string
31+
table string
32+
}
33+
2834
// TableInfoProvider keeps the TableInfo of every table version. Decoders may
2935
// share one provider: a decoder that lags behind still reads the version its
3036
// message asks for, and versions are released once the watermark passes them.

0 commit comments

Comments
 (0)