Clean-up: sessiond: cmd_enable_channel_internal
[lttng-tools.git] / src / bin / lttng-relayd / session.h
index 9f668b5fbc0ed4fc522079a2a6e621ab12e55d54..8029dcd8e96f0865083094d2b1c84a0ccb4ae6aa 100644 (file)
@@ -42,6 +42,11 @@ struct relay_session {
         * the other cases.
         */
        lttng_uuid sessiond_uuid;
+       /*
+        * Contains the creation time on the session daemon's end for 2.11+
+        * peers. Otherwise, this contains the session creation time on the
+        * relay daemon's end.
+        */
        LTTNG_OPTIONAL(time_t) creation_time;
        /* Must _not_ be empty for 2.4+ peers. */
        char session_name[LTTNG_NAME_MAX];
@@ -68,7 +73,7 @@ struct relay_session {
 
        struct urcu_ref ref;
 
-       pthread_mutex_t lock;
+       mutable pthread_mutex_t lock;
 
        /* major/minor version used for this session. */
        uint32_t major;
@@ -151,6 +156,8 @@ void session_put(struct relay_session *session);
 int session_close(struct relay_session *session);
 int session_abort(struct relay_session *session);
 
+bool session_has_ongoing_rotation(const struct relay_session *session);
+
 void print_sessions(void);
 
 #endif /* _SESSION_H */
This page took 0.025022 seconds and 4 git commands to generate.