Trimmer fix: don't emit end of trace on out-of-bound event
[babeltrace.git] / plugins / trimmer / iterator.c
index 0c6b2936cdb742f711ef7be7051ff7342b135207..c7e8355225ccbe2f842805c13179e617ab78c636 100644 (file)
@@ -260,7 +260,6 @@ evaluate_event_notification(struct bt_notification *notification,
        }
        if (end->set && ts > end->value) {
                in_range = false;
-               ret = BT_NOTIFICATION_ITERATOR_STATUS_END;
        }
 end:
        bt_put(event);
@@ -398,6 +397,7 @@ enum bt_notification_iterator_status evaluate_notification(
        enum bt_notification_iterator_status ret =
                        BT_NOTIFICATION_ITERATOR_STATUS_OK;
 
+       *in_range = true;
        type = bt_notification_get_type(notification);
        switch (type) {
        case BT_NOTIFICATION_TYPE_EVENT:
This page took 0.022476 seconds and 4 git commands to generate.