diff options
author | Jan Lehnardt <jan@apache.org> | 2011-03-28 14:00:53 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2011-03-28 14:00:53 +0000 |
commit | 2e632b8f61b7ad032845186874498d2c8bc356ef (patch) | |
tree | 973543e9add202c183ee2a984dbac0d7d89ade59 /src | |
parent | 65a6a95c361385f14757c3adf80b84d7817a0ac2 (diff) |
Fix function signature mismatch. Allow purging of single revisions in a conflicted
document.
Closes COUCHDB-1065
Patch by Randall Leeds, verified by Robert Dionne.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1086240 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_db_updater.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/couchdb/couch_db_updater.erl b/src/couchdb/couch_db_updater.erl index c14d6bf9..2b317d95 100644 --- a/src/couchdb/couch_db_updater.erl +++ b/src/couchdb/couch_db_updater.erl @@ -118,8 +118,9 @@ handle_call({purge_docs, IdRevs}, _From, Db) -> {DocInfoToUpdate, NewSeq} = lists:mapfoldl( fun(#full_doc_info{rev_tree=Tree}=FullInfo, SeqAcc) -> - Tree2 = couch_key_tree:map_leafs( fun(RevInfo) -> - RevInfo#rev_info{seq=SeqAcc + 1} + Tree2 = couch_key_tree:map_leafs( + fun(_RevId, {IsDeleted, BodyPointer, _UpdateSeq}) -> + {IsDeleted, BodyPointer, SeqAcc + 1} end, Tree), {couch_doc:to_doc_info(FullInfo#full_doc_info{rev_tree=Tree2}), SeqAcc + 1} |