Fix: don't flush-final for offset 0 if reader is on sub-buffer
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 27 Feb 2013 21:48:56 +0000 (16:48 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 27 Feb 2013 22:38:10 +0000 (17:38 -0500)
commitc2b0ef77652724c18eac5ff68d8dd6ce3ec2d85f
treece85ce2666ac6a8c1f1e275f3c7ea6ddf2256ee7
parentb374c356eb4827b68754d68adc0f1c94b5de9faa
Fix: don't flush-final for offset 0 if reader is on sub-buffer

Triggers rare sub-buffer corruption when a buffer is completely full and
a final flush is then performed.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/ring_buffer_frontend.c
This page took 0.026422 seconds and 4 git commands to generate.