relayd: open live viewer files from the current stream's trace chunk
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Aug 2019 04:55:51 +0000 (00:55 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2019 20:39:14 +0000 (16:39 -0400)
commit1bfb0c6361ee25627e9d320bdbfeafe29772a31a
tree75751b6fbbad0494bc9302949ce78081d69089d7
parent2259be0a613cdaf582107a07f7aee1682a304255
relayd: open live viewer files from the current stream's trace chunk

Since relay_streams' paths are now relative to a session's trace
chunk, file operations performed by the live protocol handler must
occur through a trace chunk.

Note that viewer streams hold a reference to the current trace chunk
of their corresponding relay stream. This is fine right now as no
session rotations may occur during the lifetime of a live session. If
this was allowed, this would be a problem since a session rotation
would not complete until all live viewer streams release their
reference to the trace chunk.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/live.c
src/bin/lttng-relayd/viewer-stream.c
src/bin/lttng-relayd/viewer-stream.h
src/common/index/index.c
src/common/index/index.h
src/common/relayd/relayd.c
src/common/relayd/relayd.h
This page took 0.026288 seconds and 4 git commands to generate.