From: compudj Date: Thu, 1 Sep 2005 19:15:54 +0000 (+0000) Subject: fix seek backbard : rare condition X-Git-Tag: v0.12.20~2381 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1c4347f913692f7837cdfd141d1d67d6813398aa;p=lttv.git fix seek backbard : rare condition git-svn-id: http://ltt.polymtl.ca/svn@1108 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/tracecontext.c b/ltt/branches/poly/lttv/lttv/tracecontext.c index ea7cdf62..98ffffa7 100644 --- a/ltt/branches/poly/lttv/lttv/tracecontext.c +++ b/ltt/branches/poly/lttv/lttv/tracecontext.c @@ -1458,7 +1458,8 @@ guint lttv_process_traceset_seek_n_backward(LttvTracesetContext *self, } /* if we have the same time twice, it means we are at the beginning of the * trace, and we seek back at the same position */ - if(ltt_time_compare(last_time, time) == 0) break; + if(ltt_time_compare(last_time, time) == 0 + && ltt_time_compare(time, self->time_span.start_time) == 0) break; last_time = time; /* Process the traceset, calling a hook which adds events