couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r1097081 - /couchdb/trunk/src/couchdb/couch_db_updater.erl
Date Wed, 27 Apr 2011 11:03:05 GMT
Author: rnewson
Date: Wed Apr 27 11:03:05 2011
New Revision: 1097081

URL: http://svn.apache.org/viewvc?rev=1097081&view=rev
Log:
COUCHDB-1141 - Tidy followup clause, IsDel can only be false.

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

Modified: couchdb/trunk/src/couchdb/couch_db_updater.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db_updater.erl?rev=1097081&r1=1097080&r2=1097081&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db_updater.erl (original)
+++ couchdb/trunk/src/couchdb/couch_db_updater.erl Wed Apr 27 11:03:05 2011
@@ -826,7 +826,6 @@ copy_docs(Db, #db{updater_fd = DestFd} =
                         couch_file:append_term_md5(DestFd, {{[]}, []}),
                     {true, Pos, Seq, SummarySize};
                 (_Rev, LeafVal, leaf) ->
-                    IsDel = element(1, LeafVal),
                     Sp = element(2, LeafVal),
                     Seq = element(3, LeafVal),
                     {_Body, AttsInfo} = Summary = copy_doc_attachments(
@@ -836,7 +835,7 @@ copy_docs(Db, #db{updater_fd = DestFd} =
                     TotalLeafSize = lists:foldl(
                         fun({_, _, _, AttLen, _, _, _, _}, S) -> S + AttLen end,
                         SummarySize, AttsInfo),
-                    {IsDel, Pos, Seq, TotalLeafSize}
+                    {false, Pos, Seq, TotalLeafSize}
                 end, RevTree)}
         end, LookupResults),
 



Mime
View raw message