diff options
author | Matthias Radestock <matthias@lshift.net> | 2009-09-23 15:54:31 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2009-09-23 15:54:31 +0100 |
commit | 263d97249bac54688b27defc152d115d0d1cb86c (patch) | |
tree | e0e3ce75b798fd7b9a9654b203dcd832cafc00a5 | |
parent | bbfbed322ec5d31641e1688dceabfde80ad92593 (diff) | |
download | rabbitmq-server-263d97249bac54688b27defc152d115d0d1cb86c.tar.gz |
compact (well, delete, actually) files with no valid messages
-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 b5fae343..9505d7c7 100644 --- a/src/rabbit_msg_store.erl +++ b/src/rabbit_msg_store.erl @@ -749,7 +749,7 @@ build_index(Left, [File|Files], FilesToCompact, attrs = Attrs }, State), {[Obj | VMAcc], VTSAcc + TotalSize, AVAcc} end - end, {[], 0, true}, Messages), + end, {[], 0, Messages =/= []}, Messages), %% foldl reverses lists, find_contiguous_block_prefix needs %% msgs eldest first, so, ValidMessages is the right way round {ContiguousTop, _} = find_contiguous_block_prefix(ValidMessages), |