couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [01/14] couch commit: updated refs/heads/COUCHDB-3287-mixed-db-records to dd163aa [Forced Update!]
Date Tue, 21 Feb 2017 17:46:03 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/COUCHDB-3287-mixed-db-records 25c9729e5 -> dd163aa16 (forced update)


Remove dead code from couch_file

This code was left over after removing 8kB read-ahead

https://github.com/apache/couchdb-couch/pull/223/commits/d52a5335d930d11ade4953c8576d22f55872ff6f

COUCHDB-3284


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/bf12a7a3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/bf12a7a3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/bf12a7a3

Branch: refs/heads/COUCHDB-3287-mixed-db-records
Commit: bf12a7a3336bd438493e7db1d090160f1c1a09f3
Parents: c73a883
Author: Nick Vatamaniuc <vatamane@apache.org>
Authored: Wed Feb 1 14:42:59 2017 -0500
Committer: Nick Vatamaniuc <vatamane@apache.org>
Committed: Wed Feb 1 14:42:59 2017 -0500

----------------------------------------------------------------------
 src/couch_file.erl | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/bf12a7a3/src/couch_file.erl
----------------------------------------------------------------------
diff --git a/src/couch_file.erl b/src/couch_file.erl
index 5d11083..d40c525 100644
--- a/src/couch_file.erl
+++ b/src/couch_file.erl
@@ -587,15 +587,6 @@ find_newest_header(Fd, [{Location, Size} | LocationSizes]) ->
     end.
 
 
-maybe_read_more_iolist(Buffer, DataSize, _, _)
-    when DataSize =< byte_size(Buffer) ->
-    <<Data:DataSize/binary, _/binary>> = Buffer,
-    [Data];
-maybe_read_more_iolist(Buffer, DataSize, NextPos, File) ->
-    {Missing, _} =
-        read_raw_iolist_int(File, NextPos, DataSize - byte_size(Buffer)),
-    [Buffer, Missing].
-
 -spec read_raw_iolist_int(#file{}, Pos::non_neg_integer(), Len::non_neg_integer()) ->
     {Data::iolist(), CurPos::non_neg_integer()}.
 read_raw_iolist_int(Fd, {Pos, _Size}, Len) -> % 0110 UPGRADE CODE


Mime
View raw message