From: Mathieu Desnoyers Date: Tue, 16 Jul 2013 00:07:36 +0000 (-0400) Subject: consumer: explicitly set endpoint status to active at init X-Git-Tag: v2.3.0-rc1~26 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=774d490c42598710944f54a53d81d1cab2a1dfaa;p=lttng-tools.git consumer: explicitly set endpoint status to active at init Ensures we explicitly set active at init for channels that don't interact with a relayd. Reviewed-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers --- diff --git a/src/common/consumer.c b/src/common/consumer.c index 57e26dcf8..94a0cc3ef 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -491,6 +491,7 @@ struct lttng_consumer_stream *consumer_allocate_stream(uint64_t channel_key, stream->net_seq_idx = relayd_id; stream->session_id = session_id; stream->monitor = monitor; + stream->endpoint_status = CONSUMER_ENDPOINT_ACTIVE; pthread_mutex_init(&stream->lock, NULL); /* If channel is the metadata, flag this stream as metadata. */