Fix: relayd close stream command was not working
authorDavid Goulet <dgoulet@efficios.com>
Fri, 19 Oct 2012 16:44:09 +0000 (12:44 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 19 Oct 2012 16:44:09 +0000 (12:44 -0400)
Somehow, the stream last_net_seq_num was not updated on the relayd side
causing the close stream check to fail each single time.

However, the stream is also closed on a session destroy, if any, so
there is no leaks once the FD hung up and no broken feature.

Acked-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-relayd/main.c

index f3d83451f94a559978b5d0dde88a133020da5916..60908bfedc5aad85ed309b6be98d3560e831b18e 100644 (file)
@@ -1046,6 +1046,7 @@ int relay_close_stream(struct lttcomm_relayd_hdr *recv_hdr,
                goto end_unlock;
        }
 
+       stream->last_net_seq_num = be64toh(stream_info.last_net_seq_num);
        stream->close_flag = 1;
 
        if (close_stream_check(stream)) {
This page took 0.026953 seconds and 5 git commands to generate.