X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer-stream.h;h=61dc773f78a215fcdc37d066af4e8b1a1783e0a5;hb=443d6e6f2a835be2843cbe41e7a7ba3fee838f20;hp=7f6b8473143cf82f3ee3925427aadb765784f13b;hpb=46824804609dbbda322577bf939b7fa029fc0bcd;p=lttng-tools.git diff --git a/src/common/consumer/consumer-stream.h b/src/common/consumer/consumer-stream.h index 7f6b84731..61dc773f7 100644 --- a/src/common/consumer/consumer-stream.h +++ b/src/common/consumer/consumer-stream.h @@ -130,4 +130,14 @@ bool consumer_stream_is_deleted(struct lttng_consumer_stream *stream); int consumer_stream_enable_metadata_bucketization( struct lttng_consumer_stream *stream); +/* + * Set the version of a metadata stream (i.e. following a metadata + * regeneration). + * + * Changing the version of a metadata stream will cause any bucketized metadata + * to be discarded and will mark the metadata stream for future `reset`. + */ +void consumer_stream_metadata_set_version( + struct lttng_consumer_stream *stream, uint64_t new_version); + #endif /* LTTNG_CONSUMER_STREAM_H */