Rotate timer
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index 5a10340a71ab28d67285010cc7a9e311d4b018e9..39c5611d77777d475be4a6b9d838c4fb815d7fca 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,11 @@ int session_create(char *name, uid_t uid, gid_t gid)
                goto error;
        }
 
+       new_session->rotate_pending = false;
+       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.025976 seconds and 5 git commands to generate.