summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-12-27 21:57:29 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2012-12-27 21:57:29 +0000
commit70817ada3cad3102d63600bc9341f9469633b2cf (patch)
tree7814ba915298c41636eaf851af22f891e80a07eb
parent4028000d5fa36e4216cd8db3ad0902e02f126970 (diff)
downloadrabbitmq-server-git-70817ada3cad3102d63600bc9341f9469633b2cf.tar.gz
get rid of bump_reductions
it hurts performance in some cases and credit_flow does a better job
-rw-r--r--src/rabbit_reader.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 928786e983..0296537d2b 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -622,8 +622,7 @@ post_process_frame({method, MethodName, _}, _ChPid,
State = #v1{connection = #connection{
protocol = Protocol}}) ->
case Protocol:method_has_content(MethodName) of
- true -> erlang:bump_reductions(2000),
- maybe_block(control_throttle(State));
+ true -> maybe_block(control_throttle(State));
false -> control_throttle(State)
end;
post_process_frame(_Frame, _ChPid, State) ->