summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_msg_store.erl2
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 =