Cleanup: lib_ring_buffer_switch_new_end() only calls subbuffer_set_data_size()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Jul 2013 17:23:11 +0000 (13:23 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Jul 2013 17:23:11 +0000 (13:23 -0400)
commit768b05c983a930f772079c0085cd5f36f6573b19
tree6b610eb1de9a583e693c98fdcc5d8a46ec689174
parentf5ea58003633d154b84c5df14a7e1fa7fcccb15c
Cleanup: lib_ring_buffer_switch_new_end() only calls subbuffer_set_data_size()

lib_ring_buffer_switch_new_end() is always called when an event exactly
fills a sub-buffer, which makes padding_size always 0. However, there is
one side-effect that lib_ring_buffer_switch_new_end() needs to have: it
calls subbuffer_set_data_size() to update the size of the data to be
read from the sub-buffer.

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