Fix: sessiond: handle empty scheduled rotations
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 6 Jul 2022 16:09:41 +0000 (12:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 17 Aug 2022 22:00:37 +0000 (18:00 -0400)
commit386d53c1e31caf0154e921c4b6d7aa940dfa602e
tree481a8f343654e932c10db05325e6870e9c8ed4b7
parent32b7f34a3cd5a946c2ac012e0d0a74640ef7f1c1
Fix: sessiond: handle empty scheduled rotations

A number of error codes were added to cmd_rotate_session since the
implementation of size-based rotations. The rotation thread doesn't
expect LTTNG_ERR_ROTATION_MULTIPLE_AFTER_STOP and
LTTNG_ERR_ROTATION_AFTER_STOP_CLEAR which are not fatal failures.

These rotations would simply result in an empty trace archive and are,
therefore, not produced. In both cases, it is safe to wait for the next
size cycle.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ib90526b586de17c0b14d16970c862d9f981ed464
src/bin/lttng-sessiond/rotation-thread.c
This page took 0.038829 seconds and 4 git commands to generate.