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>
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