Fix: ust-app: error counter index never set
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 14 Apr 2021 14:50:28 +0000 (10:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 19 Apr 2021 15:16:13 +0000 (11:16 -0400)
Issue
=====
The `struct ust_app_event_notifier_rule::error_counter_index` field is
currently never set so all error counting is done in bucket index 0.

Fix
===
Set the error counter index.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I951095dee5586111699b0ea0e3bc26c0fb4a535d

src/bin/lttng-sessiond/ust-app.c

index 54cd14ee3523955d28cd6ea4685a5f305a7170a9..a49600ec60d42f9f0b7c91ec7c31a810ed985748 100644 (file)
@@ -1271,6 +1271,8 @@ static struct ust_app_event_notifier_rule *alloc_ust_app_event_notifier_rule(
        assert(LTTNG_CONDITION_STATUS_OK == lttng_condition_on_event_get_rule(condition, &event_rule));
        assert(event_rule);
 
+       ua_event_notifier_rule->error_counter_index =
+                       lttng_condition_on_event_get_error_counter_index(condition);
        /* Acquire the event notifier's reference to the trigger. */
        lttng_trigger_get(trigger);
 
This page took 0.029131 seconds and 5 git commands to generate.