projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: The session list count should provide unique identifiers
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
session.c
diff --git
a/src/bin/lttng-sessiond/session.c
b/src/bin/lttng-sessiond/session.c
index f9d20cc56dd8ac6bff654f676aa94e2e6c089350..d30f4ab197ec63b863433070cca01fb1f378ba12 100644
(file)
--- 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.
* 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);
*/
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--;
- }
}
/*
}
/*
This page took
0.023722 seconds
and
4
git commands to generate.