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.5.0-rc1~162 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ca3aecdf2e5c045ad2f027b3dc474815d375a280;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