Allocate session UID with count increment
[lttng-tools.git] / lttng-sessiond / main.c
index d5b4c8db2c73484fd71571a901a5dc1b4b9633d2..7fe0f9a4b6344f35caccd8315a5746df57d5cd0e 100644 (file)
@@ -1780,10 +1780,7 @@ static int create_ust_session(struct ltt_session *session,
 
        DBG("Creating UST session");
 
-       session_lock_list();
-       uid = session_list_ptr->count;
-       session_unlock_list();
-
+       uid = session->uid;
        lus = trace_ust_create_session(session->path, uid, domain);
        if (lus == NULL) {
                ret = LTTCOMM_UST_SESS_FAIL;
This page took 0.027133 seconds and 5 git commands to generate.