X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flive.c;h=8c716dbde9852e1de1b9a04261fb59c22035e767;hb=87a9eb5b07a8ce2115a473921756ae402b00c2ac;hp=468a7e58710dc7fcb18424fbb4d4f063ad623a21;hpb=d3aac146d0800fe9820d51e5b9fa52e7543c1237;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 468a7e587..8c716dbde 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -1205,8 +1206,9 @@ 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); + index->stream_id = htobe64(rstream->ctf_stream_id); 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