-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sstable: fix restarts integer overflow
Fix bug with integer overflows while indexing into blocks with large KVs in SeekGE() and SeekLT() in block_iter. Updated members in blockEntry that represent offsets in blocks to be type offsetInBlock (alias for int64). Added check in rowblk_writer to ensure that block sizes do not exceed MaximumBlockSize before writing more data to the block. Wrote unit tests to verify correct behavior for SeekGE() and SeekLT() with large blocks >2GB.
- Loading branch information
Showing
4 changed files
with
243 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.