Make the judgment of whether the block needs to be searched more accurate.

This commit is contained in:
ShooterIT 2020-03-23 19:48:46 +08:00
parent 5903e7a112
commit ed84ae59ee

View File

@ -35,7 +35,7 @@ bool Reader::SkipToInitialBlock() {
uint64_t block_start_location = initial_offset_ - offset_in_block;
// Don't search a block if we'd be in the trailer
if (offset_in_block > kBlockSize - 6) {
if (offset_in_block > kBlockSize - kHeaderSize) {
block_start_location += kBlockSize;
}