diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-18 15:54:29 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-18 15:54:29 +0100 |
| commit | 4dbd1cab224540fa75b94380d2e9a37d34865e86 (patch) | |
| tree | a9e638cdaffc4709540101a50963ccaa0858bddd | |
| parent | 6dd43455c0b1b5a487a7f039e964df0491112dac (diff) | |
| download | rabbitmq-server-git-4dbd1cab224540fa75b94380d2e9a37d34865e86.tar.gz | |
cosmetic
| -rw-r--r-- | src/rabbit_msg_store.erl | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/rabbit_msg_store.erl b/src/rabbit_msg_store.erl index 7f249ed1b1..f1c055d574 100644 --- a/src/rabbit_msg_store.erl +++ b/src/rabbit_msg_store.erl @@ -824,16 +824,15 @@ add_to_file_summary(#file_summary { valid_total_size = ValidTotalSize, TotalSize, Offset, File, FileSize, #msstate { file_summary_ets = FileSummaryEts }) -> ValidTotalSize1 = ValidTotalSize + TotalSize, - ContiguousTop1 = case Offset =:= ContiguousTop of - true -> ContiguousTop + TotalSize; - false -> ContiguousTop + ContiguousTop1 = case ContiguousTop of + Offset -> ContiguousTop + TotalSize; + _ -> ContiguousTop end, - true = - ets:update_element( - FileSummaryEts, File, - [{#file_summary.valid_total_size, ValidTotalSize1}, - {#file_summary.contiguous_top, ContiguousTop1}, - {#file_summary.file_size, FileSize}]), + true = ets:update_element( + FileSummaryEts, File, + [{#file_summary.valid_total_size, ValidTotalSize1}, + {#file_summary.contiguous_top, ContiguousTop1}, + {#file_summary.file_size, FileSize}]), ok. read_message(Guid, From, |
