Fix: consumerd: slow metadata push slows down application registration
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 76a7363bf8d03bb907f420abdbd377deff7f8563..eba9947fb7409ecebee8fc081755226a1f67d680 100644 (file)
@@ -2809,6 +2809,7 @@ int handle_notification_thread_command_register_trigger(
                        client_list = notification_client_list_create(state, condition);
                        if (!client_list) {
                                ERR("Error creating notification client list for trigger %s", trigger->name);
+                               ret = -1;
                                goto error_free_ht_element;
                        }
                }
@@ -3285,12 +3286,12 @@ end:
                free(cmd);
                cmd = NULL;
        } else {
-               lttng_waiter_wake_up(&cmd->reply_waiter);
+               lttng_waiter_wake(&cmd->reply_waiter);
        }
        return ret;
 error_unlock:
        /* Wake-up and return a fatal error to the calling thread. */
-       lttng_waiter_wake_up(&cmd->reply_waiter);
+       lttng_waiter_wake(&cmd->reply_waiter);
        cmd->reply_code = LTTNG_ERR_FATAL;
 error:
        /* Indicate a fatal error to the caller. */
This page took 0.026213 seconds and 4 git commands to generate.