couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r758093 - /couchdb/trunk/src/couchdb/couch_db.erl
Date Tue, 24 Mar 2009 23:48:34 GMT
Author: damien
Date: Tue Mar 24 23:48:33 2009
New Revision: 758093

URL: http://svn.apache.org/viewvc?rev=758093&view=rev
Log:
Fix for crash when compacting an empty database

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

Modified: couchdb/trunk/src/couchdb/couch_db.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db.erl?rev=758093&r1=758092&r2=758093&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db.erl (original)
+++ couchdb/trunk/src/couchdb/couch_db.erl Tue Mar 24 23:48:33 2009
@@ -669,10 +669,10 @@
         SinceSeq + 1, % startkey
         ok, % endkey
         fun(_,_) -> true end, % groupkeys
-        fun(_SeqStart, PartialReds, ok) ->
+        fun(_SeqStart, PartialReds, 0) ->
             {ok, couch_btree:final_reduce(Db#db.docinfo_by_seq_btree, PartialReds)}
         end,
-        ok),
+        0),
     Changes.
 
 enum_docs_since(Db, SinceSeq, Direction, InFun, Ctx) ->



Mime
View raw message