X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.h;h=23f2c9d840fdcde302ca0a9b4024bd9533d499da;hp=a64bcad3bba01975a97609793379baab651dee97;hb=d01178b6f6465443d7e6e1015aa7054e9d093e91;hpb=c6857fcff91346ea41a5e9ea9a1ab0fcdb19944c diff --git a/src/common/consumer.h b/src/common/consumer.h index a64bcad3b..23f2c9d84 100644 --- a/src/common/consumer.h +++ b/src/common/consumer.h @@ -216,6 +216,14 @@ struct lttng_consumer_stream { gid_t gid; /* Network sequence number. Indicating on which relayd socket it goes. */ uint64_t net_seq_idx; + /* + * Indicate if this stream was successfully sent to a relayd. This is set + * after the refcount of the relayd is incremented and is checked when the + * stream is closed before decrementing the refcount in order to avoid an + * unbalanced state. + */ + unsigned int sent_to_relayd; + /* Identify if the stream is the metadata */ unsigned int metadata_flag; /* Used when the stream is set for network streaming */