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>
Wed, 6 Apr 2022 17:39:15 +0000 (13:39 -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.cpp

index 304589068aaaf6a4d45c4431103b262a6665ff25..3dc8065569d2dfd850e7949912bc9e4dece9b3da 100644 (file)
@@ -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;
        }
This page took 0.027695 seconds and 5 git commands to generate.