X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=15fc9b09f800d6225be465b0d3c993e69a279f09;hp=935a03d235fee67a32f1f6bd14fa7c9bdf65845d;hb=3604f373dd93990e0fd6342cfe4c657efaa171bb;hpb=3714380f76f56da2dfce53e07aa4f804a350047c diff --git a/src/common/consumer.c b/src/common/consumer.c index 935a03d23..15fc9b09f 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -755,7 +755,7 @@ static int write_relayd_stream_header(struct lttng_consumer_stream *stream, * this next value, 1 should always be substracted in order to compare * the last seen sequence number on the relayd side to the last sent. */ - data_hdr.net_seq_num = htobe64(stream->next_net_seq_num++); + data_hdr.net_seq_num = htobe64(stream->next_net_seq_num); /* Other fields are zeroed previously */ ret = relayd_send_data_hdr(&relayd->data_sock, &data_hdr, @@ -764,6 +764,8 @@ static int write_relayd_stream_header(struct lttng_consumer_stream *stream, goto error; } + ++stream->next_net_seq_num; + /* Set to go on data socket */ outfd = relayd->data_sock.fd; }