consumerd: pass channel instance to stream creation function
[lttng-tools.git] / src / common / consumer / consumer.c
index f06ea9d4d3cda1d23f88b63136fc323e45c0e924..e1ee5f2fc7d411689b2c5c28949abbe8aa383c82 100644 (file)
@@ -532,7 +532,9 @@ void consumer_del_stream_for_metadata(struct lttng_consumer_stream *stream)
        consumer_stream_destroy(stream, metadata_ht);
 }
 
-struct lttng_consumer_stream *consumer_allocate_stream(uint64_t channel_key,
+struct lttng_consumer_stream *consumer_allocate_stream(
+               struct lttng_consumer_channel *channel,
+               uint64_t channel_key,
                uint64_t stream_key,
                enum lttng_consumer_stream_state state,
                const char *channel_name,
@@ -556,7 +558,7 @@ struct lttng_consumer_stream *consumer_allocate_stream(uint64_t channel_key,
        }
 
        rcu_read_lock();
-
+       stream->chan = channel;
        stream->key = stream_key;
        stream->out_fd = -1;
        stream->out_fd_offset = 0;
This page took 0.024621 seconds and 5 git commands to generate.