From: David Goulet Date: Fri, 19 Oct 2012 16:44:09 +0000 (-0400) Subject: Fix: relayd close stream command was not working X-Git-Tag: v2.1.0-rc5~20 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8e2583a4ffe165a71656746848ae92ea8ee4d818;p=lttng-tools.git 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 --- 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)) {