Skip to content

Commit

Permalink
Fix local file sink flush (#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqi1129 authored Apr 9, 2021
1 parent 6c41167 commit c438c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdc/sink/cdclog/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (ts *tableStream) isEmpty() bool {
}

func (ts *tableStream) shouldFlush() bool {
return ts.sendSize.Load() > maxPartFlushSize
return ts.sendSize.Load() > maxRowFileSize
}

func (ts *tableStream) flush(ctx context.Context, sink *logSink) error {
Expand Down

0 comments on commit c438c60

Please sign in to comment.