timer thread in progress
[deliverable/lttng-tools.git] / src / bin / lttng-sessiond / session.h
index 9e5c3151bb1c26a947e970301355effdd23db364..5edd962688df79ce3188d48a8a6ee4b8444e02e6 100644 (file)
@@ -135,13 +135,13 @@ struct ltt_session {
         * Number of session rotation for this session.
         */
        uint64_t rotate_count;
-       unsigned int rotate_pending:1;
+       bool rotate_pending;
+       bool rotate_pending_relay;
+       enum lttng_rotate_status rotate_status;
        /*
         * Number of channels waiting for a rotate.
         * When this number reaches 0, we can handle the rename of the chunk
         * folder and inform the client that the rotate is finished.
-        *
-        * TODO: replace rotate_pending checks by that.
         */
        unsigned int nr_chan_rotate_pending;
        struct ltt_session_chunk rotation_chunk;
@@ -161,6 +161,12 @@ struct ltt_session {
        time_t current_chunk_start_ts;
        time_t session_last_stop_ts;
        time_t last_begin_rotation_ts;
+       /*
+        * Timer to check periodically if a relay has completed the last
+        * rotation.
+        */
+       int rotate_relay_pending_timer_enabled;
+       timer_t rotate_relay_pending_timer;
 };
 
 /* Prototypes */
This page took 0.026623 seconds and 5 git commands to generate.