1
0
mirror of https://github.com/google/leveldb.git synced 2025-04-25 14:00:27 +08:00
This commit is contained in:
Hao Tan 2025-03-07 22:57:33 +00:00 committed by GitHub
commit 8ad5dcedbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 - 6) {
block_start_location += kBlockSize;
}