From: Julien Desfossez Date: Thu, 14 Dec 2017 19:15:57 +0000 (-0500) Subject: Consumer perform the rotation when extracting a packet X-Git-Tag: v2.11.0-rc1~349 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=02d02e31d47c091a38154c9c188c08387902d97b;hp=02d02e31d47c091a38154c9c188c08387902d97b Consumer perform the rotation when extracting a packet When the consumer reads a subbuffer, it checks if the stream needs to be rotated before or after writing the data. The post-rotation action must take place after we have released the stream lock, so we need to add a flag to the read_subbuffer functions to know if a rotation occurred while the stream lock was held. Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau ---