Skip to content

Commit

Permalink
Revert "Use erlang:'<'/2 directly for raw collation"
Browse files Browse the repository at this point in the history
This commit adds the old comparison function.
It's based on the revert from
http://review.couchbase.org/10505

The revert got lost during the index merger refactoring.

Change-Id: I36ad6496c033be881b7a7bbf7c6144b9e2a23f56
Reviewed-on: http://review.couchbase.org/11305
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information
Volker Mische authored and alk committed Dec 4, 2011
1 parent b131055 commit b7f631e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/couchdb/couch_view_merger.erl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ view_less_fun(Collation, Dir, ViewType) ->
fun({KeyA, _}, {KeyB, _}) -> couch_view:less_json(KeyA, KeyB) end
end;
<<"raw">> ->
fun erlang:'<'/2
fun(A, B) -> A < B end
end,
case Dir of
fwd ->
Expand Down

0 comments on commit b7f631e

Please sign in to comment.