From 6f729565b0b93009bc1e91a05bae6b7e04c1e8a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 6 Apr 2022 13:37:16 -0400 Subject: [PATCH] Fix: sessiond: inverted condition checking for empty hash table MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I inverted a condition while reformating 2a6ebf6bd. This reverts the condition to the intention of the original author. Mea culpa. Signed-off-by: Jérémie Galarneau Change-Id: I8c39a89f430dbb4a0f1e385b3b8e4788f188a468 --- src/bin/lttng-sessiond/session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/session.cpp b/src/bin/lttng-sessiond/session.cpp index 304589068..3dc806556 100644 --- a/src/bin/lttng-sessiond/session.cpp +++ b/src/bin/lttng-sessiond/session.cpp @@ -391,7 +391,7 @@ static bool ltt_sessions_ht_empty(void) LTTNG_ASSERT(ltt_sessions_ht_by_name); - if (lttng_ht_get_count(ltt_sessions_ht_by_id) == 0) { + if (lttng_ht_get_count(ltt_sessions_ht_by_id) != 0) { /* Not empty.*/ goto end; } -- 2.34.1