consumerd: pass channel instance to stream creation function
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index 0318eecea05600ded402806ef24d6d32f7a7b23e..c37be8fb8fa49f103d04125861a6465bb7667575 100644 (file)
@@ -155,7 +155,9 @@ static struct lttng_consumer_stream *allocate_stream(int cpu, int key,
        assert(channel);
        assert(ctx);
 
-       stream = consumer_allocate_stream(channel->key,
+       stream = consumer_allocate_stream(
+                       channel,
+                       channel->key,
                        key,
                        LTTNG_CONSUMER_ACTIVE_STREAM,
                        channel->name,
@@ -185,8 +187,6 @@ static struct lttng_consumer_stream *allocate_stream(int cpu, int key,
                goto error;
        }
 
-       stream->chan = channel;
-
 error:
        if (_alloc_ret) {
                *_alloc_ret = alloc_ret;
This page took 0.023969 seconds and 5 git commands to generate.