diff options
-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]} |