diff options
author | Paul Joseph Davis <davisp@apache.org> | 2011-01-20 00:51:26 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2011-01-20 00:51:26 +0000 |
commit | 7ab438e99d43acc8898471c13c512124cccca56f (patch) | |
tree | 8fc4d2c5570792b48f0169f1dc2da948d8e2a51c /src/couchdb/couch_db.erl | |
parent | 3798ac83517494e2f3435f9093613d0e94bbec43 (diff) | |
parent | c9c334db9fe384265df316459555fe2411fd8231 (diff) |
Tagging the 1.0.2 release. Again.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/tags/1.0.2@1061084 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db.erl')
-rw-r--r-- | src/couchdb/couch_db.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index f005a2ea..b7055b5c 100644 --- a/src/couchdb/couch_db.erl +++ b/src/couchdb/couch_db.erl @@ -920,7 +920,7 @@ with_stream(Fd, #att{md5=InMd5,type=Type,encoding=Enc}=Att, Fun) -> write_streamed_attachment(_Stream, _F, 0) -> ok; -write_streamed_attachment(Stream, F, LenLeft) -> +write_streamed_attachment(Stream, F, LenLeft) when LenLeft > 0 -> Bin = F(), ok = couch_stream:write(Stream, Bin), write_streamed_attachment(Stream, F, LenLeft - size(Bin)). |