Files
scylladb/core
Nadav Har'El fcce304908 collectd: Don't use the network stack before it is set up
The current code (this will change soon with my reactor patches)
constructs a default (Posix) network stack before reactore::configure()
reassigns it to the requested network stack.

It turns out there is one place we use the network stack before calling
reactore::configure(), which ends up using the Posix stack even though
we want the native stack - this is both silly and plainly doesn't work on
the OSv setup.

The problem is that app_template.hh tries to configure scollectd before
the engine is started. This calls scollectd::impl::start() which calls
engine.net().make_udp_channel(). When this happens this early, it creates
a Posix socket...

This patch moves the scollectd configuration to after the engine is
started. It makes sense to me: As far as I understand, scollectd is all
about sending packets (diagnostic packets), and it's kind of silly to
start sending packets before starting the machinary which allows us to
send packets.

Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>
[avi: use customary indentation, remove unneeded make_ready_future()]
2014-11-09 17:46:09 +02:00
..
2014-11-09 14:41:01 +02:00
2014-10-05 18:09:09 +03:00
2014-10-22 16:37:36 +03:00
2014-10-05 19:58:12 +03:00
2014-10-02 14:32:32 +03:00
2014-11-09 16:33:34 +02:00
2014-10-23 15:59:52 +03:00
2014-11-05 11:35:50 +02:00
2014-10-30 14:08:23 +02:00
2014-11-09 16:33:33 +02:00
2014-11-09 16:26:27 +02:00
2014-11-06 10:30:30 +02:00
2014-11-09 16:47:16 +02:00
2014-10-21 16:58:35 +02:00