Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Update restore.go
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer authored May 20, 2021
1 parent ec770d4 commit 846569b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/lightning/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -2648,10 +2648,6 @@ func (cr *chunkRestore) encodeLoop(
canDeliver = true
kvSize = 0
}

if len(kvPacket) >= maxKvPairsCnt || newOffset == cr.chunk.Chunk.EndOffset {
canDeliver = true
}
}
encodeTotalDur += encodeDur
metric.RowEncodeSecondsHistogram.Observe(encodeDur.Seconds())
Expand Down

0 comments on commit 846569b

Please sign in to comment.