Skip to content

Commit

Permalink
lightning: fix panic in nextKey (pingcap#1261) (pingcap#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jun 22, 2021
1 parent 3ac0a28 commit f2fcbfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/lightning/backend/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -1656,8 +1656,7 @@ func (local *local) writeAndIngestByRange(
if !hasKey {
log.L().Info("There is no pairs in iterator",
logutil.Key("start", start),
logutil.Key("end", end),
logutil.Key("next end", nextKey(end)))
logutil.Key("end", end))
engineFile.finishedRanges.add(Range{start: start, end: end})
return nil
}
Expand Down

0 comments on commit f2fcbfa

Please sign in to comment.