Fix: initialize kernel stream max subbuffer size on creation
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Aug 2019 20:39:56 +0000 (16:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2019 20:39:14 +0000 (16:39 -0400)
commit2c42aa5ccc7d4f6c1b57788146da2202b95a5f31
treecdedebeca465c7200a8ad7b2fc460d5dff372490
parentc0f0db7b588bfad264892f5d8403d3f5cd4ffc66
Fix: initialize kernel stream max subbuffer size on creation

A consumer stream's maximal subbuffer size is only initialized while
taking a snapshot. This unexpectedly leaves the max_sb_size at 0
causing the rotation target sequence number computation to crash with
a SIGFPE.

This fix initializes the value as soon as possible to provide a
behaviour in line with that of the ust-consumer.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/kernel-consumer/kernel-consumer.c
This page took 0.025419 seconds and 4 git commands to generate.