X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer-stream.c;h=398d71ae05f92f6d9c0437b4fb203532870eb5d6;hp=fb878d72cabb6a56e4ff5a8a0d0303062a99d165;hb=f96af312b;hpb=577eea73132dee4da47752590ed535206678eb34 diff --git a/src/common/consumer/consumer-stream.c b/src/common/consumer/consumer-stream.c index fb878d72c..398d71ae0 100644 --- a/src/common/consumer/consumer-stream.c +++ b/src/common/consumer/consumer-stream.c @@ -452,6 +452,8 @@ struct lttng_consumer_stream *consumer_stream_create( stream->index_file = NULL; stream->last_sequence_number = -1ULL; stream->rotate_position = -1ULL; + /* Buffer is created with an open packet. */ + stream->opened_packet_in_current_trace_chunk = true; pthread_mutex_init(&stream->lock, NULL); pthread_mutex_init(&stream->metadata_timer_lock, NULL);