summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_msg_store.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_msg_store.erl b/src/rabbit_msg_store.erl
index ed7b55f243..cc1397734a 100644
--- a/src/rabbit_msg_store.erl
+++ b/src/rabbit_msg_store.erl
@@ -1438,8 +1438,8 @@ maybe_compact(State = #msstate { sum_valid_data = SumValid,
gc_active = false,
gc_pid = GCPid,
file_summary_ets = FileSummaryEts })
- when SumFileSize >= 3 * ?FILE_SIZE_LIMIT andalso
- (SumFileSize - SumValid) / SumFileSize > ?GARBAGE_FRACTION ->
+ when (SumFileSize > 2 * ?FILE_SIZE_LIMIT andalso
+ (SumFileSize - SumValid) / SumFileSize > ?GARBAGE_FRACTION) ->
case ets:first(FileSummaryEts) of
'$end_of_table' ->
State;