Fix: Don't set filter if enable event fails
authorDavid Goulet <dgoulet@efficios.com>
Fri, 9 Nov 2012 18:36:02 +0000 (13:36 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 9 Nov 2012 18:36:31 +0000 (13:36 -0500)
commit911a481190c7af4c043bb5482152a76e9787c5b5
tree0ac6ad3145bd619a138b4e451f63e509e17e39f4
parent9aa9f90096acb57bdc6939920bea9fc7e4f60231
Fix: Don't set filter if enable event fails

Furthermore, the session daemon now returns an already exist error if
the event is enabled twice. Since we can now set filter, it's misleading
the user to tell him/her that the event was enabled but the filter
failed and than disabling the already enabled event by a previous
command.

Fixes #363 #364

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-app.c
src/bin/lttng/commands/enable_events.c
This page took 0.033462 seconds and 4 git commands to generate.