diff options
| author | Matthew Sackman <matthew@lshift.net> | 2009-10-09 12:46:10 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2009-10-09 12:46:10 +0100 |
| commit | 5a634b7fd8c256b619756fc11f3f27b7d7e2b434 (patch) | |
| tree | 0f84ae19ec519a959e6fd03b3fcbe7211107b6a7 /src | |
| parent | fbf5a614b1e83c1977c183d8aa6f09ea2c64d617 (diff) | |
| download | rabbitmq-server-git-5a634b7fd8c256b619756fc11f3f27b7d7e2b434.tar.gz | |
having discovered that erlang:min and erlang:max do exist, swap them in in place of lists:min and lists:max where appropriate
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_disk_queue.erl | 4 | ||||
| -rw-r--r-- | src/rabbit_msg_store.erl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_disk_queue.erl b/src/rabbit_disk_queue.erl index 42c4ed8bf5..19f5a74eea 100644 --- a/src/rabbit_disk_queue.erl +++ b/src/rabbit_disk_queue.erl @@ -716,8 +716,8 @@ extract_sequence_numbers(Sequences) -> [] -> ets:insert_new(Sequences, {Q, SeqId, NextWrite}); [Orig = {_, Read, Write}] -> - Repl = {Q, lists:min([Read, SeqId]), - lists:max([Write, NextWrite])}, + Repl = {Q, erlang:min(Read, SeqId), + erlang:max(Write, NextWrite)}, case Orig == Repl of true -> true; false -> ets:insert(Sequences, Repl) diff --git a/src/rabbit_msg_store.erl b/src/rabbit_msg_store.erl index 8596e09f68..707afc3807 100644 --- a/src/rabbit_msg_store.erl +++ b/src/rabbit_msg_store.erl @@ -536,7 +536,7 @@ remove_message(MsgId, State = #msstate { file_summary = FileSummary }) -> [FSEntry = #file_summary { valid_total_size = ValidTotalSize, contiguous_top = ContiguousTop }] = ets:lookup(FileSummary, File), - ContiguousTop1 = lists:min([ContiguousTop, Offset]), + ContiguousTop1 = erlang:min(ContiguousTop, Offset), ValidTotalSize1 = ValidTotalSize - TotalSize, true = ets:insert(FileSummary, FSEntry #file_summary { valid_total_size = ValidTotalSize1, |
