From 02e15395d8f4fa43e135e48d321c89cc9622a1a8 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Fri, 30 Jan 2009 04:57:44 +0000 Subject: all_docs view with descending=true works properly now. fix COUCHDB-109 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@739170 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_btree.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_btree.erl b/src/couchdb/couch_btree.erl index f993a0a1..f2212aa0 100644 --- a/src/couchdb/couch_btree.erl +++ b/src/couchdb/couch_btree.erl @@ -558,6 +558,8 @@ adjust_dir(rev, List) -> stream_node(Bt, Reds, PointerInfo, nil, Dir, Fun, Acc) -> stream_node(Bt, Reds, PointerInfo, Dir, Fun, Acc); +stream_node(Bt, Reds, PointerInfo, {}, rev, Fun, Acc) -> + stream_node(Bt, Reds, PointerInfo, rev, Fun, Acc); stream_node(_Bt, _Reds, nil, _StartKey, _Dir, _Fun, Acc) -> {ok, Acc}; stream_node(Bt, Reds, {Pointer, _Reds}, StartKey, Dir, Fun, Acc) -> -- cgit v1.2.3