X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;fp=src%2Fcommon%2Fconsumer.c;h=d192d7a5194cb6b439a33ebd68e38a2ce5560629;hp=f2662cddadd5e8d3b98d7ebcc4f7c386a8552c78;hb=328dee38c16dd9eae7118531d610780511d5556f;hpb=9fc2d9fcd2a5d3b6718d67307367da0f030307ca diff --git a/src/common/consumer.c b/src/common/consumer.c index f2662cdda..d192d7a51 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -3548,15 +3548,6 @@ int consumer_data_pending(uint64_t id) */ ret = cds_lfht_is_node_deleted(&stream->node.node); if (!ret) { - /* - * An empty output file is not valid. We need at least one packet - * generated per stream, even if it contains no event, so it - * contains at least one packet header. - */ - if (stream->output_written == 0) { - pthread_mutex_unlock(&stream->lock); - goto data_pending; - } /* Check the stream if there is data in the buffers. */ ret = data_pending(stream); if (ret == 1) {