sessiond: introduce cleared_after_last_stop
[lttng-tools.git] / src / bin / lttng-sessiond / session.h
index 3625ece6d4ce5196586c632025cc6567ab06557f..a60354d756ca45f0c5885dfdf53c7e473a0bc0b6 100644 (file)
@@ -173,6 +173,12 @@ struct ltt_session {
         * chunk.
         */
        bool rotated_after_last_stop;
+       /*
+        * Track whether the session was cleared after last stop. All subsequent
+        * clear (without prior start) will succeed, but will be effect-less. A
+        * subsequent rotate (without prior start) will return an error.
+        */
+       bool cleared_after_last_stop;
        /*
         * Condition and trigger for size-based rotations.
         */
This page took 0.022881 seconds and 4 git commands to generate.