From 774d490c42598710944f54a53d81d1cab2a1dfaa Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 15 Jul 2013 20:07:36 -0400 Subject: [PATCH] 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 --- src/common/consumer.c | 1 + 1 file changed, 1 insertion(+) 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. */ -- 2.34.1