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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 6 Jul 2018 22:50:37 +0000 (18:50 -0400)
commit0d3cdb1c0cd27ac6255e31eb891b1cdf7c8ec80f
treedbe9304697a644f154fd349fdeaa6de5eafc976d
parentd1de950db2f48a6a2a00557cd8987198274e0e2b
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.027767 seconds and 5 git commands to generate.