From: David Goulet Date: Thu, 4 Jul 2013 18:07:04 +0000 (-0400) Subject: Fix: send kernel stream to relayd only if needed X-Git-Tag: v2.3.0-rc1~70 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e1b71bdc87cefd070ae082d88f6d4af5f2bcbd62;p=lttng-tools.git Fix: send kernel stream to relayd only if needed Signed-off-by: David Goulet --- diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c index 63ca35d62..77132c9ae 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -626,10 +626,13 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx, break; } - ret = consumer_send_relayd_stream(new_stream, NULL); - if (ret < 0) { - consumer_stream_free(new_stream); - goto end_nosignal; + /* Send stream to relayd if the stream has an ID. */ + if (new_stream->net_seq_idx != (uint64_t) -1ULL) { + ret = consumer_send_relayd_stream(new_stream, NULL); + if (ret < 0) { + consumer_stream_free(new_stream); + goto end_nosignal; + } } /* Get the right pipe where the stream will be sent. */