Fix: unhandled prev_seq initial value
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 29 Mar 2018 19:13:34 +0000 (15:13 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 Apr 2018 16:12:29 +0000 (12:12 -0400)
commit3765c8cc40733ddde776d57c1ece30f2b05beea4
tree1ccbf028272776cfef70136ebcdc919e50d40c61
parent90936dcf0968343f20b2f6fd365b9c015cdb9717
Fix: unhandled prev_seq initial value

The previous sequence number of a stream is initialized to -1ULL
and comparing the current sequence number against it to perform
a rotation will yield unexepected results.

The assumption that the previous sequence number is less than
the current one is assert()'ed on elsewhere.

This case triggers whenever a rotation is performed before the
relay daemon has received a packet for a given stream.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c
This page took 0.026452 seconds and 5 git commands to generate.