Rotate command
[lttng-tools.git] / src / bin / lttng-sessiond / session.h
index 3b3380c3f4d8f5ec112baedab274969f59765cee..78890db3cb24bcd786e1c448552e8347e52b9685 100644 (file)
@@ -19,6 +19,7 @@
 #define _LTT_SESSION_H
 
 #include <limits.h>
+#include <stdbool.h>
 #include <urcu/list.h>
 
 #include <common/hashtable/hashtable.h>
@@ -127,6 +128,10 @@ struct ltt_session {
         * rotate_pending_relay.
         */
        bool rotate_pending;
+       /*
+        * True until the relay has finished the rotation of all the streams.
+        */
+       bool rotate_pending_relay;
        /* Current status of a rotation. */
        enum lttng_rotation_status rotation_status;
        /*
@@ -162,6 +167,13 @@ struct ltt_session {
         * with the current timestamp.
         */
        time_t current_chunk_start_ts;
+       /*
+        * Keep a state if this session was rotated after the last stop command.
+        * We only allow one rotation after a stop. At destroy, we also need to
+        * know if a rotation occured since the last stop to rename the current
+        * chunk.
+        */
+       bool rotated_after_last_stop;
 };
 
 /* Prototypes */
This page took 0.024633 seconds and 5 git commands to generate.