Backport: Fix: relayd streams can be leaked on connection error
[lttng-tools.git] / src / bin / lttng-relayd / stream.c
index e9c7ad172bc0d2f0e44ff3925ae929bd0b8e1398..da0b3fd2680bd689846f6c049491bfabf5ddcbae 100644 (file)
@@ -384,6 +384,7 @@ void try_stream_close(struct relay_stream *stream)
                 * a packet. Since those are sent in that order, we take
                 * care of consumerd crashes.
                 */
+               DBG("relay_index_close_partial_fd");
                relay_index_close_partial_fd(stream);
                /*
                 * Use the highest net_seq_num we currently have pending
@@ -391,6 +392,7 @@ void try_stream_close(struct relay_stream *stream)
                 * at -1ULL if we cannot find any index.
                 */
                stream->last_net_seq_num = relay_index_find_last(stream);
+               DBG("Updating stream->last_net_seq_num to %" PRIu64, stream->last_net_seq_num);
                /* Fall-through into the next check. */
        }
 
This page took 0.025396 seconds and 5 git commands to generate.