X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.c;h=13abe424c3b1c4472034fbd6be4473c3570abff4;hb=2a09e9fb3029858cd04ce36471bc4a9c9d7b6624;hp=bcdd78d50e68b921f47ceb4038311c625aee875d;hpb=dab4fc145b926b13e1d1ba6c6047a1e2a9c46002;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/session.c b/src/bin/lttng-sessiond/session.c index bcdd78d50..13abe424c 100644 --- a/src/bin/lttng-sessiond/session.c +++ b/src/bin/lttng-sessiond/session.c @@ -64,14 +64,12 @@ static unsigned int add_session_list(struct ltt_session *ls) * Delete a ltt_session structure to the global list. * * The caller MUST acquire the session list lock before. + * The session list count CANNOT be decremented, as it is used as unique + * identifier for the session in UST app hash table lookups. */ static void del_session_list(struct ltt_session *ls) { cds_list_del(&ls->list); - /* Sanity check */ - if (ltt_session_list.count > 0) { - ltt_session_list.count--; - } } /*