Rotate command
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index 5a10340a71ab28d67285010cc7a9e311d4b018e9..942d68c131daff04de8c8faf786a335522522cd7 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,9 @@ int session_create(char *name, uid_t uid, gid_t gid)
                goto error;
        }
 
+       new_session->rotate_pending = false;
+       new_session->rotate_pending_relay = false;
+
        /* Add new session to the session list */
        session_lock_list();
        new_session->id = add_session_list(new_session);
This page took 0.024343 seconds and 4 git commands to generate.