Fix: wrong condition on startup for low-activity streams
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 24 Feb 2014 18:02:19 +0000 (13:02 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 24 Feb 2014 18:51:34 +0000 (13:51 -0500)
If we only received and sent one index, we should not be in the retry
condition.
The rstream->total_index_received == vstream->last_sent_index is checked
before.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-relayd/live.c

index c60f7e4c9c4db0f3d00dff773b2c537b0cc4bd43..468a7e58710dc7fcb18424fbb4d4f063ad623a21 100644 (file)
@@ -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
This page took 0.027579 seconds and 4 git commands to generate.