summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-09-13 17:39:11 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-09-13 17:39:11 +0100
commit9227d5e7248999a8a5a42f01a5f65d8aefa0e0a5 (patch)
tree3ba5a990df9a74f897243cb2f80024a1b13e8303
parenta03e474f875b20c27617d72f407b206285142152 (diff)
downloadrabbitmq-server-9227d5e7248999a8a5a42f01a5f65d8aefa0e0a5.tar.gz
Revert emiting stats on creation in the queue and channel.
-rw-r--r--src/rabbit_amqqueue_process.erl4
-rw-r--r--src/rabbit_channel.erl4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index d07aa99e..77df71cc 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -167,10 +167,6 @@ declare(Recover, From,
State1 = init_expires(State#q{backing_queue_state = BQS}),
rabbit_event:notify(queue_created,
infos(?CREATION_EVENT_KEYS, State1)),
- case rabbit_event:stats_level(StatsTimer) of
- none -> ok;
- _ -> emit_stats(State1)
- end,
noreply(State1);
Q1 -> {stop, normal, {existing, Q1}, State}
end.
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index d518e59b..e5511330 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -177,10 +177,6 @@ init([Channel, ReaderPid, WriterPid, Username, VHost, CollectorPid,
queue_collector_pid = CollectorPid,
stats_timer = StatsTimer},
rabbit_event:notify(channel_created, infos(?CREATION_EVENT_KEYS, State)),
- case rabbit_event:stats_level(StatsTimer) of
- none -> ok;
- _ -> internal_emit_stats(State)
- end,
{ok, State, hibernate,
{backoff, ?HIBERNATE_AFTER_MIN, ?HIBERNATE_AFTER_MIN, ?DESIRED_HIBERNATE}}.