X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer.h;h=59764e105c36ef086c77dec6508312e7d8b54d58;hp=3af7db9136f3b011eef851397a2747ac86878ce2;hb=93ec662e687dc15a3601704a1e0c96c51ad228c9;hpb=b31610f2294a6a827fa2d0d19d71199567db8dc5 diff --git a/src/common/consumer/consumer.h b/src/common/consumer/consumer.h index 3af7db913..59764e105 100644 --- a/src/common/consumer/consumer.h +++ b/src/common/consumer/consumer.h @@ -292,6 +292,11 @@ struct lttng_consumer_stream { /* Identify if the stream is the metadata */ unsigned int metadata_flag; + /* + * Last known metadata version, reset the metadata file in case + * of change. + */ + uint64_t metadata_version; /* Used when the stream is set for network streaming */ uint64_t relayd_stream_id; /* @@ -382,6 +387,11 @@ struct lttng_consumer_stream { /* Indicate if the stream still has some data to be read. */ unsigned int has_data:1; + /* + * Inform the consumer or relay to reset the metadata + * file before writing in it (regeneration). + */ + unsigned int reset_metadata_flag:1; }; /*