From 8e2583a4ffe165a71656746848ae92ea8ee4d818 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 19 Oct 2012 12:44:09 -0400 Subject: [PATCH] Fix: relayd close stream command was not working 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 Signed-off-by: David Goulet --- src/bin/lttng-relayd/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index f3d83451f..60908bfed 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -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)) { -- 2.34.1