diff --git a/db/log_reader.cc b/db/log_reader.cc index 9880279..97b2bd8 100644 --- a/db/log_reader.cc +++ b/db/log_reader.cc @@ -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 - 6) { block_start_location += kBlockSize; }