Fix: post-clear trace chunk has a late beginning packet
[lttng-tools.git] / src / common / consumer / consumer-stream.c
index fb878d72cabb6a56e4ff5a8a0d0303062a99d165..398d71ae05f92f6d9c0437b4fb203532870eb5d6 100644 (file)
@@ -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);
 
This page took 0.023541 seconds and 4 git commands to generate.