projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: mark channel as disabled even if the session is inactive
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
channel.c
diff --git
a/src/bin/lttng-sessiond/channel.c
b/src/bin/lttng-sessiond/channel.c
index 2beb4f711e6a60adbcafec0f9ab6c269de805234..073965ac67bd708e6184915d62431f5342312675 100644
(file)
--- a/
src/bin/lttng-sessiond/channel.c
+++ b/
src/bin/lttng-sessiond/channel.c
@@
-522,6
+522,13
@@
int channel_ust_disable(struct ltt_ust_session *usess,
DBG2("Channel UST %s already disabled", uchan->name);
goto end;
}
DBG2("Channel UST %s already disabled", uchan->name);
goto end;
}
+
+ uchan->enabled = 0;
+
+ /*
+ * If session is inactive we don't notify the tracer right away. We
+ * wait for the next synchronization.
+ */
if (!usess->active) {
goto end;
}
if (!usess->active) {
goto end;
}
@@
-534,8
+541,6
@@
int channel_ust_disable(struct ltt_ust_session *usess,
goto error;
}
goto error;
}
- uchan->enabled = 0;
-
DBG2("Channel %s disabled successfully", uchan->name);
return LTTNG_OK;
DBG2("Channel %s disabled successfully", uchan->name);
return LTTNG_OK;
This page took
0.024652 seconds
and
4
git commands to generate.