X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer.hpp;h=dd8eb40d44798c8466c7f3d3eaa794ee6d60c169;hb=c715ddc950bf653d9456d92c6ead2e3cbd3c54ae;hp=4bcfe5d9529cc6460f293dc7fbc47e0e04728e2a;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/common/consumer/consumer.hpp b/src/common/consumer/consumer.hpp index 4bcfe5d95..dd8eb40d4 100644 --- a/src/common/consumer/consumer.hpp +++ b/src/common/consumer/consumer.hpp @@ -449,7 +449,11 @@ struct lttng_consumer_stream { /* Amount of bytes written to the output */ uint64_t output_written; int shm_fd_is_copy; - int data_read; + /* + * When a stream's pipe is hung up, a final flush is performed (see hangup_flush_done). This + * indicates whether or not the data resulting from this flush is still to be consumed. + */ + int has_data_left_to_be_read_before_teardown; int hangup_flush_done; /* @@ -1075,7 +1079,7 @@ enum lttcomm_return_code lttng_consumer_trace_chunk_exists( void lttng_consumer_cleanup_relayd(struct consumer_relayd_sock_pair *relayd); enum lttcomm_return_code lttng_consumer_init_command( struct lttng_consumer_local_data *ctx, - const lttng_uuid sessiond_uuid); + const lttng_uuid& sessiond_uuid); int lttng_consumer_clear_channel(struct lttng_consumer_channel *channel); enum lttcomm_return_code lttng_consumer_open_channel_packets( struct lttng_consumer_channel *channel);