Skip to content
Browse files

missed case in refactor

  • Loading branch information...
1 parent 898ff3c commit d8fc4104debfad3a494616cee18b1d7f4e5ff3ef Robert Dionne committed Nov 12, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 apps/couch/src/couch_btree.erl
View
7 apps/couch/src/couch_btree.erl
@@ -127,7 +127,12 @@ make_key_in_end_range_function(Bt, Dir, Options) ->
end
end;
EndKey ->
- fun(Key) -> less(Bt, EndKey, Key) end
+ case Dir of
+ rev ->
+ fun(Key) -> less(Bt, EndKey, Key) end;
+ fwd ->
+ fun(Key) -> less(Bt, Key, EndKey) end
+ end
end.

0 comments on commit d8fc410

Please sign in to comment.
Something went wrong with that request. Please try again.