Keep read-only copies of fields from the channel to the stream
[lttng-tools.git] / src / common / consumer / consumer.c
index 6b920b6b1ef63ee5d6e50cc4092b89bc498b7a9d..2fa65f4d4e53666e18b0278cea052b20177a6158 100644 (file)
@@ -541,6 +541,16 @@ void consumer_del_stream_for_metadata(struct lttng_consumer_stream *stream)
        consumer_stream_destroy(stream, metadata_ht);
 }
 
+void consumer_stream_update_channel_attributes(
+               struct lttng_consumer_stream *stream,
+               struct lttng_consumer_channel *channel)
+{
+       stream->channel_read_only_attributes.tracefile_size =
+                       channel->tracefile_size;
+       memcpy(stream->channel_read_only_attributes.path, channel->pathname,
+                       sizeof(stream->channel_read_only_attributes.path));
+}
+
 struct lttng_consumer_stream *consumer_allocate_stream(uint64_t channel_key,
                uint64_t stream_key,
                enum lttng_consumer_stream_state state,
This page took 0.026531 seconds and 5 git commands to generate.