Backport: relayd: replace lttng_index_file with relay_index_file
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 1 Jul 2018 03:20:43 +0000 (23:20 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 21 Sep 2018 04:00:52 +0000 (00:00 -0400)
commitf465e9787f5b70d4a8f3761c60b8d6e4161e9628
treedbe29f6f84524858694bb988e17027abaf39e9d9
parentdf6a42ab1fc6edd419525646134989e519b717ce
Backport: relayd: replace lttng_index_file with relay_index_file

lttng_index_file is shared between the consumer and relay daemon.
However, the introduction of the fd-tracker in the relay daemon
makes it hard to cleanly share this piece of code between both
daemons.

The ctf-index.h header is still shared by both daemons which
is the most important part. The lttng/relay_index_file class
is a fairly thin wrapper around file system operations (unlink,
read, and write an index) so there is little value gained in
sharing the code vs heavily modifying it to handle the presence
of an fd-tracker in the process.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/Makefile.am
src/bin/lttng-relayd/index-file.c [new file with mode: 0644]
src/bin/lttng-relayd/index-file.h [new file with mode: 0644]
src/bin/lttng-relayd/index.c
src/bin/lttng-relayd/index.h
src/bin/lttng-relayd/live.c
src/bin/lttng-relayd/main.c
src/bin/lttng-relayd/stream.c
src/bin/lttng-relayd/stream.h
src/bin/lttng-relayd/viewer-stream.c
src/bin/lttng-relayd/viewer-stream.h
This page took 0.027442 seconds and 5 git commands to generate.