From cbaa5167aa7657b68c8137645bed915adf65596f Mon Sep 17 00:00:00 2001 From: Alexandre Montplaisir Date: Thu, 30 Jul 2015 19:52:14 -0400 Subject: [PATCH] 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 --- .../org/lttng/ust/agent/AbstractLttngAgent.java | 1 + 1 file changed, 1 insertion(+) 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)) { -- 2.34.1