diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-18 15:50:42 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-18 15:50:42 +0100 |
| commit | 6dd43455c0b1b5a487a7f039e964df0491112dac (patch) | |
| tree | 8bae399cd37ec70ae8d89b0d3b18008c8cc7f75f | |
| parent | e2a4881bd65bcee19b1f3ccde7c9332a0a5cbc9c (diff) | |
| download | rabbitmq-server-git-6dd43455c0b1b5a487a7f039e964df0491112dac.tar.gz | |
Because we can increment the refcount back above 0, the calculation of the contiguous top needs to be contiguousTop + totalSize, because the validtotalsize can contain data that's well beyond the old contiguous top
| -rw-r--r-- | src/rabbit_msg_store.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_msg_store.erl b/src/rabbit_msg_store.erl index 4ca91aa1b5..7f249ed1b1 100644 --- a/src/rabbit_msg_store.erl +++ b/src/rabbit_msg_store.erl @@ -825,7 +825,7 @@ add_to_file_summary(#file_summary { valid_total_size = ValidTotalSize, #msstate { file_summary_ets = FileSummaryEts }) -> ValidTotalSize1 = ValidTotalSize + TotalSize, ContiguousTop1 = case Offset =:= ContiguousTop of - true -> ValidTotalSize1; + true -> ContiguousTop + TotalSize; false -> ContiguousTop end, true = |
