diff options
author | Robert Newson <rnewson@apache.org> | 2010-08-18 11:41:10 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2010-08-18 11:41:10 +0000 |
commit | d18d7036788acf2d5ddab608d0352158139de189 (patch) | |
tree | 4474cce378e152c36bd4484a673776ab3abe15be /src/couchdb/couch_file.erl | |
parent | 6ddcdf17ef2a5e55f0962211c7c878aa5e74ffe7 (diff) |
COUCHDB-161 - support Range header for attachments.
Attachments are upgraded to support the Range header on compaction.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@986629 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_file.erl')
-rw-r--r-- | src/couchdb/couch_file.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl index 0a891712..f809ce1e 100644 --- a/src/couchdb/couch_file.erl +++ b/src/couchdb/couch_file.erl @@ -508,6 +508,8 @@ load_header(Fd, Block) -> -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 + read_raw_iolist_int(Fd, Pos, Len); read_raw_iolist_int(#file{fd=Fd, tail_append_begin=TAB}, Pos, Len) -> BlockOffset = Pos rem ?SIZE_BLOCK, TotalBytes = calculate_total_read_len(BlockOffset, Len), |