summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_btree.erl2
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) ->