Skip to content

Commit

Permalink
Update br/pkg/lightning/restore/restore.go
Browse files Browse the repository at this point in the history
Co-authored-by: Obliviate <[email protected]>
  • Loading branch information
D3Hunter and buchuitoudegou authored Aug 25, 2022
1 parent 9f00a50 commit f6de4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/pkg/lightning/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@ func (cr *chunkRestore) deliverLoop(

if m, ok := metric.FromContext(ctx); ok {
// value of currOffset comes from parser.pos which increase monotonically. the init value of parser.pos
// comes from chunk.Chunk.Offset. so it should happen that currOffset - startOffset < 0.
// comes from chunk.Chunk.Offset. so it shouldn't happen that currOffset - startOffset < 0.
// but we met it one time, but cannot reproduce it now, we add this check to make code more robust
// TODO: reproduce and find the root cause and fix it completely
if currOffset >= startOffset {
Expand Down

0 comments on commit f6de4e5

Please sign in to comment.