Increase LTTNG_HOST_NAME_MAX from 64 to 255
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index 5a10340a71ab28d67285010cc7a9e311d4b018e9..2b7d65eaa1b61fbae82a230ee2a6b7247505d0ac 100644 (file)
@@ -328,7 +328,7 @@ int session_destroy(struct ltt_session *session)
        /* Safety check */
        assert(session);
 
-       DBG("Destroying session %s", session->name);
+       DBG("Destroying session %s (id %" PRIu64 ")", session->name, session->id);
        del_session_list(session);
        pthread_mutex_destroy(&session->lock);
        del_session_ht(session);
@@ -400,6 +400,12 @@ int session_create(char *name, uid_t uid, gid_t gid)
                goto error;
        }
 
+       new_session->rotate_pending = false;
+       new_session->rotation_state = LTTNG_ROTATION_STATE_NO_ROTATION;
+       new_session->rotate_pending_relay = false;
+       new_session->rotate_relay_pending_timer_enabled = false;
+       new_session->rotate_timer = false;
+
        /* Add new session to the session list */
        session_lock_list();
        new_session->id = add_session_list(new_session);
This page took 0.024227 seconds and 4 git commands to generate.