couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r1151976 - /couchdb/branches/1.1.x/src/couchdb/couch_db_updater.erl
Date Thu, 28 Jul 2011 19:14:09 GMT
Author: rnewson
Date: Thu Jul 28 19:14:08 2011
New Revision: 1151976

URL: http://svn.apache.org/viewvc?rev=1151976&view=rev
Log:
revert redundant pattern match.

Modified:
    couchdb/branches/1.1.x/src/couchdb/couch_db_updater.erl

Modified: couchdb/branches/1.1.x/src/couchdb/couch_db_updater.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_db_updater.erl?rev=1151976&r1=1151975&r2=1151976&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_db_updater.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_db_updater.erl Thu Jul 28 19:14:08 2011
@@ -484,9 +484,9 @@ flush_trees(#db{fd=Fd,header=Header}=Db,
                 {ok, NewSummaryPointer} =
                 case Header#db_header.disk_version < 4 of
                 true ->
-                    {ok, _} = couch_file:append_term(Fd, {Doc#doc.body, DiskAtts});
+                    couch_file:append_term(Fd, {Doc#doc.body, DiskAtts});
                 false ->
-                    {ok, _} = couch_file:append_term_md5(Fd, {Doc#doc.body, DiskAtts})
+                    couch_file:append_term_md5(Fd, {Doc#doc.body, DiskAtts})
                 end,
                 {IsDeleted, NewSummaryPointer, UpdateSeq};
             _ ->



Mime
View raw message