diff options
author | Damien F. Katz <damien@apache.org> | 2009-03-24 23:48:33 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2009-03-24 23:48:33 +0000 |
commit | fdb2475ea2924c918186f9c1e99ec4887ce512a7 (patch) | |
tree | 30e6f3e2aa6bf97555fd368b1d507f1c6a5b429a /src/couchdb | |
parent | a81b697f50429bc3168183a8d3c828704479bdde (diff) |
Fix for crash when compacting an empty database
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758093 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_db.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index 24b55575..681bc2ab 100644 --- a/src/couchdb/couch_db.erl +++ b/src/couchdb/couch_db.erl @@ -669,10 +669,10 @@ count_changes_since(Db, SinceSeq) -> 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) -> |