Fix: iterator set_pos
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 24 Jul 2012 18:04:01 +0000 (14:04 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 24 Jul 2012 18:04:01 +0000 (14:04 -0400)
commit6fabd7afe089a4e92b80f8a278fd670fb8698970
treeb11c6c6860b4ce2d2346d8257f1ae2febe2b4f97
parent3a25e036c64003c5778538d7cfef8beccc65d640
Fix: iterator set_pos

Iterating over all the streams of the trace_collection was a mistake
since we could not identify the end of the streams (so we would always
save the position of the last event).

When we save the new position, we now iterate over each stream active in
a copy of the current heap to save their position. That way we don't
save the position for streams read entirely.

Fixes: #293
Fixes: #296
[ Edit by Mathieu Desnoyers: fix memory leaks on errors ]

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/iterator.c
This page took 0.024166 seconds and 4 git commands to generate.