From: Jérémie Galarneau Date: Mon, 16 Jan 2017 19:33:06 +0000 (-0500) Subject: Trimmer fix: don't emit end of trace on out-of-bound event X-Git-Tag: v2.0.0-pre1~586 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=b61397c449519f7950ae0fa44371ca2abd221502 Trimmer fix: don't emit end of trace on out-of-bound event Trimmer must properly end packets and streams before returning END_OF_TRACE. Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/trimmer/iterator.c b/plugins/trimmer/iterator.c index 0c6b2936..c7e83552 100644 --- a/plugins/trimmer/iterator.c +++ b/plugins/trimmer/iterator.c @@ -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: