lib/graph/iterator: don't reset clock expectation when seeking beginning
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 22 Mar 2024 18:28:37 +0000 (14:28 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Mar 2024 18:56:36 +0000 (14:56 -0400)
When asking an iterator to seeking the beginning, there is no reason to
reset the clock expectations.  The clocks seen after a seek beginning
should be compatible with those seen before.

Change-Id: I91d45b22c477048d92bc567a3ee26ec9641c1055
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12147
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/lib/graph/iterator.c

index 42b7176f6c7884dfc23803edd68aa27b87ebf8a8..1cb1e6a074f19af053650d58acdbe049987eda8b 100644 (file)
@@ -1445,7 +1445,6 @@ void reset_iterator_expectations(
                struct bt_message_iterator *iterator)
 {
        iterator->last_ns_from_origin = INT64_MIN;
-       iterator->clock_expectation.type = CLOCK_EXPECTATION_UNSET;
 }
 
 static
This page took 0.02637 seconds and 4 git commands to generate.