From: Alexandre Montplaisir Date: Thu, 30 Jul 2015 23:52:14 +0000 (-0400) Subject: Fix: Correctly handle the command to disable all events X-Git-Tag: v2.8.0-rc1~113 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cbaa5167aa7657b68c8137645bed915adf65596f;p=lttng-ust.git Fix: Correctly handle the command to disable all events Missed a return statement in the method to handle disable event commands. The "*" event would get disabled correctly, but the execution would fall-through and fail later on, incorrectly reporting a failure. Signed-off-by: Alexandre Montplaisir Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java index 4e6d4af0..64b33b6c 100644 --- a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java +++ b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java @@ -227,6 +227,7 @@ public abstract class AbstractLttngAgent implements ILt enabledWildcards.incrementAndGet(); return false; } + return true; } if (eventName.endsWith(WILDCARD)) {