forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fstream: improve make_file_input_stream() for a subrange of a file
Currently, when Scylla wants to read a subset of a file, it does so by playing games with buffer_size and hoping no read-ahead takes place. This is hacky, however, so provide an explicit API that specifies both the offset within the file and the size of the data to read. This will allow us to enable read-ahead without fear. Message-Id: <1453891684-3982-1-git-send-email-avi@scylladb.com>
- Loading branch information
Showing
3 changed files
with
126 additions
and
10 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
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
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