Fixes #514
Signed-off-by: David Goulet <dgoulet@efficios.com>
goto end;
}
stream->fd = ret;
+ /* Reset current size because we just perform a stream rotation. */
+ stream->tracefile_size_current = 0;
}
stream->tracefile_size_current += data_size;
do {
goto end;
}
outfd = stream->out_fd = ret;
+ /* Reset current size because we just perform a rotation. */
+ stream->tracefile_size_current = 0;
}
stream->tracefile_size_current += len;
}
goto end;
}
outfd = stream->out_fd = ret;
+ /* Reset current size because we just perform a rotation. */
+ stream->tracefile_size_current = 0;
}
stream->tracefile_size_current += len;
}