You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2021/09/27 20:09:40 UTC
[couchdb] 01/02: Revert "Fix pread logic"
This is an automated email from the ASF dual-hosted git repository.
chewbranca pushed a commit to branch chewbranca-ioq-experiments-rebase
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 5478c4552dc8483fb5ab056b94c0260516876222
Author: Russell Branca <ch...@apache.org>
AuthorDate: Mon Sep 27 13:09:09 2021 -0700
Revert "Fix pread logic"
This reverts commit 96c462e5f639044439ec8ffb4f65f7d96153b7d7.
---
src/couch/src/couch_file.erl | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/couch/src/couch_file.erl b/src/couch/src/couch_file.erl
index e7fd229..0cfc91e 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