Skip to content

Commit

Permalink
fix: Fix scan-binlog panic (#344)
Browse files Browse the repository at this point in the history
Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper authored Jan 22, 2025
1 parent 8cdb9c7 commit 43d4e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion states/scan_binlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (s *InstanceState) ScanBinlogCommand(ctx context.Context, p *ScanBinlogPara
}
}

if pkBinlog == nil && segment.State != models.SegmentStateGrowing {
if pkBinlog == nil {
fmt.Printf("PK Binlog not found, segment %d\n", segment.ID)
continue
}
Expand Down

0 comments on commit 43d4e81

Please sign in to comment.