From: David Goulet Date: Mon, 24 Feb 2014 19:35:05 +0000 (-0500) Subject: Revert "Fix: wrong condition on startup for low-activity streams" X-Git-Tag: v2.4.0~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4661b8791dad51713efb8097172f842e81ce1e7b;p=lttng-tools.git Revert "Fix: wrong condition on startup for low-activity streams" This reverts commit d3aac146d0800fe9820d51e5b9fa52e7543c1237. Acked-by: Julien Desfossez Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 468a7e587..c60f7e4c9 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -1206,7 +1206,7 @@ static int check_index_status(struct relay_viewer_stream *vstream, index->status = htobe32(LTTNG_VIEWER_INDEX_INACTIVE); index->timestamp_end = htobe64(rstream->beacon_ts_end); goto index_ready; - } else if (rstream->total_index_received < vstream->last_sent_index + } else if (rstream->total_index_received <= vstream->last_sent_index && !vstream->close_write_flag) { /* * Reader and writer are working in the same tracefile, so we care