Skip to content

Commit

Permalink
buffer: turn off zero-copy reads for now
Browse files Browse the repository at this point in the history
Some users will need to be changed to handle getting the correct
length from bufferlist::read_fd.

Signed-off-by: Josh Durgin <[email protected]>
  • Loading branch information
jdurgin committed Nov 25, 2013
1 parent 75d4a72 commit 03d63c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ int buffer::list::read_file(const char *fn, std::string *error)
ssize_t buffer::list::read_fd(int fd, size_t len)
{
// try zero copy first
if (read_fd_zero_copy(fd, len) == 0) {
if (false && read_fd_zero_copy(fd, len) == 0) {
// TODO fix callers to not require correct read size, which is not
// available for raw_pipe until we actually inspect the data
return 0;
Expand Down

0 comments on commit 03d63c4

Please sign in to comment.