Fix: get the stream_id when generating live beacons
[lttng-tools.git] / src / bin / lttng-relayd / live.c
index 468a7e58710dc7fcb18424fbb4d4f063ad623a21..b0d53dfc8548d76c05f0c4df7588ca3992fb6dae 100644 (file)
@@ -1205,8 +1205,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
This page took 0.035371 seconds and 4 git commands to generate.