couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r754578 - /couchdb/trunk/src/couchdb/couch_db.erl
Date Sun, 15 Mar 2009 01:30:07 GMT
Author: jchris
Date: Sun Mar 15 01:30:07 2009
New Revision: 754578

URL: http://svn.apache.org/viewvc?rev=754578&view=rev
Log:
fix case-miss when prep_and_validate_update is called on doc with attachment stubs

Modified:
    couchdb/trunk/src/couchdb/couch_db.erl

Modified: couchdb/trunk/src/couchdb/couch_db.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db.erl?rev=754578&r1=754577&r2=754578&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db.erl (original)
+++ couchdb/trunk/src/couchdb/couch_db.erl Sun Mar 15 01:30:07 2009
@@ -342,8 +342,8 @@
         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]}



Mime
View raw message