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.2.2~15 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bf9abc514ce1871a1cb26cfd9f73257edf7d24a0;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 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. */