Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couchdb 3288 mixed cluster upgrade #495

Merged
merged 9 commits into from
Sep 27, 2017
Prev Previous commit
Next Next commit
Avoid bad match on really old databases
COUCHDB-3288
  • Loading branch information
davisp committed Sep 27, 2017
commit 1c5e136b34042b1da11fae156542468a6fd28f41
4 changes: 2 additions & 2 deletions src/couch/src/couch_db.erl
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ get_pid(#db{main_pid = Pid}) ->
Pid.

get_doc_count(Db) ->
{ok, {Count, _, _}} = couch_btree:full_reduce(Db#db.id_tree),
{ok, Count}.
{ok, Reds} = couch_btree:full_reduce(Db#db.id_tree),
{ok, element(1, Reds)}.

get_uuid(#db{}=Db) ->
couch_db_header:uuid(Db#db.header).
Expand Down