X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.h;h=78890db3cb24bcd786e1c448552e8347e52b9685;hp=3b3380c3f4d8f5ec112baedab274969f59765cee;hb=5c408ad8ef08a226c018702aca969536f36ac4e5;hpb=d086f507d02078aed618ab291a0bc4a634958fa3 diff --git a/src/bin/lttng-sessiond/session.h b/src/bin/lttng-sessiond/session.h index 3b3380c3f..78890db3c 100644 --- a/src/bin/lttng-sessiond/session.h +++ b/src/bin/lttng-sessiond/session.h @@ -19,6 +19,7 @@ #define _LTT_SESSION_H #include +#include #include #include @@ -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 */