Permalink
Browse files

Revert "Port workaround for COUCHDB-902"

This reverts commit c484b5b. An
upstream patch for the core issue was applied to dbcore as 88ae45.

BugzID: 11551
BugzID: 11366
  • Loading branch information...
1 parent 0bcf175 commit 40308d80402594be224f3833ef83dc25c9931ead @kocolosk kocolosk committed with Robert Newson Mar 4, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/chttpd_db.erl
View
@@ -1022,10 +1022,8 @@ db_attachment_req(#httpd{method=Method, user_ctx=Ctx}=Req, Db, DocId, FileNamePa
end
end,
- #doc{atts=Atts, revs = {Pos, Revs}} = Doc,
+ #doc{atts=Atts} = Doc,
DocEdited = Doc#doc{
- % prune revision list as a workaround for key tree bug (COUCHDB-902)
- revs = {Pos, case Revs of [] -> []; [Hd|_] -> [Hd] end},
atts = NewAtt ++ [A || A <- Atts, A#att.name /= FileName]
},
case fabric:update_doc(Db, DocEdited, [{user_ctx,Ctx}]) of

0 comments on commit 40308d8

Please sign in to comment.