diff options
author | Russell Branca <chewbranca@apache.org> | 2021-09-27 13:09:09 -0700 |
---|---|---|
committer | Russell Branca <chewbranca@apache.org> | 2021-09-27 13:09:09 -0700 |
commit | 5478c4552dc8483fb5ab056b94c0260516876222 (patch) | |
tree | fab543170342cb298f2bd9fd53ee440b70a180a2 | |
parent | 96c462e5f639044439ec8ffb4f65f7d96153b7d7 (diff) | |
download | couchdb-5478c4552dc8483fb5ab056b94c0260516876222.tar.gz |
Revert "Fix pread logic"
This reverts commit 96c462e5f639044439ec8ffb4f65f7d96153b7d7.
-rw-r--r-- | src/couch/src/couch_file.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/couch/src/couch_file.erl b/src/couch/src/couch_file.erl index e7fd229ef..0cfc91ec8 100644 --- a/src/couch/src/couch_file.erl +++ b/src/couch/src/couch_file.erl @@ -199,9 +199,7 @@ pread_binary(Fd, Pos) -> {ok, iolist_to_binary(L)}. -pread_iolist(#ioq_file{parallel=true, fd=Fd}, Pos) -> - Limit = get_pread_limit(), - File = #file{fd=Fd, is_sys=false, pread_limit=Limit}, +pread_iolist(#ioq_file{parallel=true, fd=File}, Pos) -> {LenIolist, NextPos} = read_raw_iolist_int(File, Pos, 4), case iolist_to_binary(LenIolist) of <<1:1/integer,Len:31/integer>> -> % an MD5-prefixed term |