X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=8bac35e7db8aa492f6f3a3056f5dfa623a8588f6;hb=32b2dbc0b7aed43943b973f56a4c447f1c66269b;hp=755aa5ee888a052dec4b11da43d355fa437456b2;hpb=76ad88ce0969e585a5aa479f249db1a484fe9208;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 755aa5ee8..8bac35e7d 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -3547,15 +3547,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) {