You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/28 14:11:39 UTC
[03/50] couch commit: updated refs/heads/master to 9d0ac7d
Add stop clause for couch_btree
This is part of "Implement couch_view:get_map_keys/4", the rest was in
couch_view:get_map_keys, a module which no longer exists.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/a99f3965
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/a99f3965
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/a99f3965
Branch: refs/heads/master
Commit: a99f39658e7a89addcd9b5fb1b8e89eb0af02d52
Parents: 618584b
Author: Paul J. Davis <pa...@gmail.com>
Authored: Sat Jul 20 17:57:36 2013 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Aug 28 12:59:59 2014 +0100
----------------------------------------------------------------------
src/couch_btree.erl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/a99f3965/src/couch_btree.erl
----------------------------------------------------------------------
diff --git a/src/couch_btree.erl b/src/couch_btree.erl
index 09c3d6a..e9ff7f5 100644
--- a/src/couch_btree.erl
+++ b/src/couch_btree.erl
@@ -714,7 +714,9 @@ stream_kp_node(Bt, Reds, [{Key, Node} | Rest], InRange, Dir, Fun, Acc) ->
{stop, LastReds, Acc3}
end;
{skip, Acc2} ->
- stream_kp_node(Bt, [Red | Reds], Rest, InRange, Dir, Fun, Acc2)
+ stream_kp_node(Bt, [Red | Reds], Rest, InRange, Dir, Fun, Acc2);
+ {stop, Acc2} ->
+ {stop, Reds, Acc2}
end.
drop_nodes(_Bt, Reds, _StartKey, []) ->