You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2011/07/28 21:14:09 UTC
svn commit: r1151976 -
/couchdb/branches/1.1.x/src/couchdb/couch_db_updater.erl
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};
_ ->