Fix: unhandled prev_seq initial value
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index f68ecdfbcbfe6ab9248c8603676a6a811e59d9aa..e3c070f8ba0330c2c297983456b385be19ad0513 100644 (file)
@@ -1722,7 +1722,8 @@ int try_rotate_stream(struct relay_stream *stream)
                goto end;
        }
 
-       if (stream->prev_seq < stream->rotate_at_seq_num) {
+       if (stream->prev_seq < stream->rotate_at_seq_num ||
+                       stream->prev_seq == -1ULL) {
                DBG("Stream %" PRIu64 " no yet ready for rotation",
                                stream->stream_handle);
                goto end;
This page took 0.023006 seconds and 4 git commands to generate.