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:10:57 UTC
svn commit: r1151974 -
/couchdb/branches/1.0.x/src/couchdb/couch_db_updater.erl
Author: rnewson
Date: Thu Jul 28 19:10:57 2011
New Revision: 1151974
URL: http://svn.apache.org/viewvc?rev=1151974&view=rev
Log:
revert redundant pattern match.
Modified:
couchdb/branches/1.0.x/src/couchdb/couch_db_updater.erl
Modified: couchdb/branches/1.0.x/src/couchdb/couch_db_updater.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_db_updater.erl?rev=1151974&r1=1151973&r2=1151974&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_db_updater.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_db_updater.erl Thu Jul 28 19:10:57 2011
@@ -474,9 +474,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};
_ ->