diff options
| author | Matthew Sackman <matthew@lshift.net> | 2009-04-22 12:51:59 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2009-04-22 12:51:59 +0100 |
| commit | 29d323a6881a508977d7382e15b379695648ed13 (patch) | |
| tree | bf3b37521dfacd9b84601689abbccd1c9a0cd5ee /src | |
| parent | 659194e683096c9ae0e3758f6dd6b95cd72b2662 (diff) | |
| download | rabbitmq-server-git-29d323a6881a508977d7382e15b379695648ed13.tar.gz | |
neater
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_disk_queue.erl | 4 |
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) |
