X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=b5f9ae92e576f2a76107f6920ec999d04a027b72;hb=3bd9b05c09342cbc5cfc1df0d048876939258d6d;hp=ee03795532aa505b8383215710cd6aac96835dc9;hpb=31597293bbddd1d436bf7b21575a62b653767218;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index ee0379553..b5f9ae92e 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -3546,15 +3546,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) {