diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-06-24 17:56:41 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-06-24 17:56:41 +0000 |
commit | 88caaddccbe40a148ffd83aab6fdd78b68442ecf (patch) | |
tree | 1fa2c79572f8a2bf97a64aa9dd2f9770260bf75e /src/couchdb | |
parent | 5e852ddcb85429fbaf8003328104744aa00a98b0 (diff) |
don't require a revpos attribute for stubs. closes COUCHDB-809 thanks Caleb Land
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957653 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_doc.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_doc.erl b/src/couchdb/couch_doc.erl index 6c8f522d..0a71f2e3 100644 --- a/src/couchdb/couch_doc.erl +++ b/src/couchdb/couch_doc.erl @@ -357,9 +357,9 @@ has_stubs([_Att|Rest]) -> merge_stubs(#doc{id=Id,atts=MemBins}=StubsDoc, #doc{atts=DiskBins}) -> BinDict = dict:from_list([{Name, Att} || #att{name=Name}=Att <- DiskBins]), MergedBins = lists:map( - fun(#att{name=Name, data=stub, revpos=RevPos}) -> + fun(#att{name=Name, data=stub}) -> case dict:find(Name, BinDict) of - {ok, #att{revpos=RevPos}=DiskAtt} -> + {ok, #att{}=DiskAtt} -> DiskAtt; _ -> throw({missing_stub, |