X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer-stream.h;h=50e402fe200f1c90f0e06c62622c12f6f29b38d5;hp=cb1dafe3951a4a004cfc2b03864f11471de7d130;hb=e66d26f5110d65c1f9549904a33986797a3759a4;hpb=f5ba75b4f0c0b44092c76bc931b25b24a2e62718 diff --git a/src/common/consumer/consumer-stream.h b/src/common/consumer/consumer-stream.h index cb1dafe39..50e402fe2 100644 --- a/src/common/consumer/consumer-stream.h +++ b/src/common/consumer/consumer-stream.h @@ -120,4 +120,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 */