Fix: enable-rotation: wrong type of rotation specified in message
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 1 Dec 2021 13:46:11 +0000 (08:46 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 10 Jan 2022 23:41:51 +0000 (18:41 -0500)
commit4e9db781daa52072d9b0d235691bfad79538e791
tree40b8247ad3d8e3cd8541e5caaa36a44f00105f05
parente8c94936ad41942f158a9f77456ab1aeb4924e9c
Fix: enable-rotation: wrong type of rotation specified in message

48a4000 changed the initialization of the schedule_type_str to allow the
code to compile as C++. The C-version of the code explicitly specified
the enum values which was "safer" while the C++ version assumes that the
array is initialized in the order of the enum's values.

This results in an incorrect message when enabling a rotation schedule.
For instance, enabling a periodic rotation will print that a
"size-based" rotation was successfully enabled.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I3cb6fcb6a67d7b0fa4c7913694923b5f03255389
src/bin/lttng/commands/enable_rotation.cpp
This page took 0.02516 seconds and 4 git commands to generate.