diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-03-15 01:30:07 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-03-15 01:30:07 +0000 |
commit | 9885c09375a374d6cceb95f59b3fef26b6177ad3 (patch) | |
tree | 72251a429f3a27f06b1818cf0c0b569a043b2a4f /src/couchdb/couch_db.erl | |
parent | a6fb15dd8594fc06c32aaeeac055e9697ceab553 (diff) |
fix case-miss when prep_and_validate_update is called on doc with attachment stubs
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754578 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db.erl')
-rw-r--r-- | src/couchdb/couch_db.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index 46de8745..24b55575 100644 --- a/src/couchdb/couch_db.erl +++ b/src/couchdb/couch_db.erl @@ -342,8 +342,8 @@ prep_and_validate_updates(Db, [DocBucket|RestBuckets], fun(Doc, {Docs2Acc, AccErrors2}) -> case prep_and_validate_update(Db, Doc, OldFullDocInfo, LeafRevsDict) of - {ok, Doc} -> - {[Doc | Docs2Acc], AccErrors2}; + {ok, Doc2} -> + {[Doc2 | Docs2Acc], AccErrors2}; {Error, #doc{id=Id,revs={Pos, [NewRev|_]}}} -> % Record the error {Docs2Acc, [{{Id, {Pos, NewRev}}, Error} |AccErrors2]} |