Permalink
Browse files

Revert "MB-7631 Interpret bp of 0 as empty body"

Applying to branch 2.0.1, and then merging back 2.0.2, and
finally merge 2.0.2 to 2.0.1.

This reverts commit c086371.

Change-Id: I36bc250c125c164369eb6f39e47df7f512b8a417
Reviewed-on: http://review.couchbase.org/24595
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
  • Loading branch information...
1 parent c086371 commit bfd853e859ab961f8ee6c8fb8b38e667b3dd0a9c @fdmanana fdmanana committed Feb 14, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/couchdb/couch_db.erl
View
@@ -687,11 +687,7 @@ open_doc_int(Db, <<?LOCAL_DOC_PREFIX, _/binary>> = Id, Options) ->
end;
open_doc_int(Db, #doc_info{id=Id,deleted=IsDeleted,rev=RevInfo, body_ptr=Bp,
content_meta=ContentMeta}=DocInfo, Options) ->
- Body = case Bp of
- 0 -> <<>>;
- _ -> {ok, Body0} = couch_file:pread_iolist(Db#db.fd, Bp),
- Body0
- end,
+ {ok, Body} = couch_file:pread_iolist(Db#db.fd, Bp),
Doc = #doc{
id = Id,
rev = RevInfo,

0 comments on commit bfd853e

Please sign in to comment.