diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-01-30 04:57:44 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-01-30 04:57:44 +0000 |
commit | 02e15395d8f4fa43e135e48d321c89cc9622a1a8 (patch) | |
tree | a485852702fe295d5ebc5bcb0844a60b1225cd3e /src/couchdb | |
parent | 38ba90e827fcc1105cb513c66f189eaea4436462 (diff) |
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
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_btree.erl | 2 |
1 files changed, 2 insertions, 0 deletions
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) -> |