diff options
| author | Matthew Sackman <matthew@lshift.net> | 2009-06-18 17:30:51 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2009-06-18 17:30:51 +0100 |
| commit | 31789bf730f2e6d70719b7096da5479bf4480190 (patch) | |
| tree | ad98f740a279d2dd33c57a4af0d08b108e3fc368 | |
| parent | 8b71dcf0fb2e41fe3dc6adc5f044ef0b9b65caee (diff) | |
| download | rabbitmq-server-git-31789bf730f2e6d70719b7096da5479bf4480190.tar.gz | |
exercise tiny area of the code to try and suggest it might be a zero-sum game.
| -rw-r--r-- | src/rabbit_tests.erl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index f45a36bb48..3d25399d65 100644 --- a/src/rabbit_tests.erl +++ b/src/rabbit_tests.erl @@ -975,13 +975,16 @@ rdq_test_mixed_queue_modes() -> MS5a end, MS4, lists:seq(1,10)), 30 = rabbit_mixed_queue:length(MS6), - io:format("Published a mixture of messages~n"), + io:format("Published a mixture of messages; ~w~n", + [rabbit_mixed_queue:estimate_extra_memory(MS6)]), {ok, MS7} = rabbit_mixed_queue:to_disk_only_mode(MS6), 30 = rabbit_mixed_queue:length(MS7), - io:format("Converted to disk only mode~n"), + io:format("Converted to disk only mode; ~w~n", + [rabbit_mixed_queue:estimate_extra_memory(MS7)]), {ok, MS8} = rabbit_mixed_queue:to_mixed_mode(MS7), 30 = rabbit_mixed_queue:length(MS8), - io:format("Converted to mixed mode~n"), + io:format("Converted to mixed mode; ~w~n", + [rabbit_mixed_queue:estimate_extra_memory(MS8)]), MS10 = lists:foldl( fun (N, MS9) -> @@ -1020,6 +1023,7 @@ rdq_test_mixed_queue_modes() -> rdq_start(), {ok, MS17} = rabbit_mixed_queue:init(q, true, mixed), 0 = rabbit_mixed_queue:length(MS17), + 0 = rabbit_mixed_queue:estimate_extra_memory(MS17), io:format("Recovered queue~n"), rdq_stop(), passed. |
