diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2012-11-02 09:13:44 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-11-02 09:13:44 +0000 |
| commit | 1a2c5738e764a7df0361b62a3d23c5d138a08bc4 (patch) | |
| tree | f12247bd25f75a0946aa12beb106bfd65967bea6 /scripts | |
| parent | bcb4dd60658b3095511cbf2532c5ac102926c672 (diff) | |
| download | rabbitmq-server-git-1a2c5738e764a7df0361b62a3d23c5d138a08bc4.tar.gz | |
only trigger stats emission from writers in the server
(and not the Erlang client)
The server (and *only* the server) starts channels with
rabbit_channel_sup:start_link({tcp, ...}). Writers are created as part
of that. We pass an extra argument to rabbit_writer:start_link in
this case, indicating that the reader wants be told by the writer to
emit stats.
Internally, the writer handles the stats/no_stats distinction by
initialising the stats timer differently. We introduce a new function
to create a disabled stats timer, thus taking advantage of all the
existing logic in rabbit_event that suppresses timer/stats operations
when stats are disabled.
This approach requires inclusion of rabbit_event in rabbit_common.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
