From bf9abc514ce1871a1cb26cfd9f73257edf7d24a0 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 b24f95003..feeb9163b 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -596,6 +596,7 @@ struct lttng_consumer_stream *consumer_allocate_stream(uint64_t channel_key, stream->gid = gid; stream->net_seq_idx = relayd_id; stream->session_id = session_id; + 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