working for metadata on the relay
[deliverable/lttng-tools.git] / src / common / relayd / relayd.c
index 6e3e91bfebbe861c51f62a7c58e94dc516dea695..ed8136193927145dcad5b9fb7232ebfe41ba5c1c 100644 (file)
@@ -993,8 +993,12 @@ int relayd_rotate_stream(struct lttcomm_relayd_sock *rsock, uint64_t stream_id,
 
        memset(&msg, 0, sizeof(msg));
        msg.stream_id = htobe64(stream_id);
-       msg.rotate_at_seq_num = htobe64(seq_num);
        msg.new_chunk_id = htobe64(new_chunk_id);
+       /*
+        * the seq_num is invalid for metadata streams, but it is ignored on
+        * the relay.
+        */
+       msg.rotate_at_seq_num = htobe64(seq_num);
        if (lttng_strncpy(msg.new_pathname, new_pathname,
                                sizeof(msg.new_pathname))) {
                ret = -1;
This page took 0.027335 seconds and 5 git commands to generate.