Fix: sessiond: inverted condition checking for empty hash table
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 6 Apr 2022 17:37:16 +0000 (13:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 7 Apr 2022 14:36:04 +0000 (10:36 -0400)
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 <jeremie.galarneau@efficios.com>
Change-Id: I8c39a89f430dbb4a0f1e385b3b8e4788f188a468

src/bin/lttng-sessiond/session.c

index 519c22ab5a0d767007fa7fe7026d74243daa2aa7..6f52bcf4fac62abb83baac3342de28f30f37a3ee 100644 (file)
@@ -391,7 +391,7 @@ static bool ltt_sessions_ht_empty(void)
 
        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;
        }
This page took 0.027083 seconds and 4 git commands to generate.