X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer.c;h=2fa65f4d4e53666e18b0278cea052b20177a6158;hp=6b920b6b1ef63ee5d6e50cc4092b89bc498b7a9d;hb=d9a2e16ee3abce83801f58473831330aa8a5463b;hpb=261de6373c70dcd52421642db5486747e9c10bae diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index 6b920b6b1..2fa65f4d4 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -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,