From: Jérémie Galarneau Date: Wed, 6 Apr 2022 17:37:16 +0000 (-0400) Subject: Fix: sessiond: inverted condition checking for empty hash table X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=6f729565b0b93009bc1e91a05bae6b7e04c1e8a1 Fix: sessiond: inverted condition checking for empty hash table 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 --- 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; }