summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_disk_queue.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_disk_queue.erl b/src/rabbit_disk_queue.erl
index 2952ca89ec..26f831e343 100644
--- a/src/rabbit_disk_queue.erl
+++ b/src/rabbit_disk_queue.erl
@@ -501,8 +501,8 @@ combineFile(File, State = #dqstate { file_size_limit = FileSizeLimit,
end.
sortMsgLocationsByOffset(Asc, List) ->
- Comp = if Asc -> fun(X, Y) -> X < Y end;
- true -> fun(X, Y) -> X > Y end
+ Comp = if Asc -> fun erlang:'<'/2;
+ true -> fun erlang:'>'/2
end,
lists:sort(fun ({_, _, _, OffA, _}, {_, _, _, OffB, _}) ->
Comp(OffA, OffB)