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>
Thu, 7 Jul 2022 18:49:38 +0000 (14:49 -0400)
commit2545db87957d24f43e2e2d5c49bb56b31bb9180a
tree31622ba9738ef87c771218b8cc45cafae831b073
parent6d31b87d46a9301fe86d273616ab3d7214d24e65
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.cpp
This page took 0.0249 seconds and 4 git commands to generate.