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>
Tue, 3 Jul 2018 14:40:58 +0000 (10:40 -0400)
commit2b50861369ac488798121c2897d620ac73d89d58
tree203ffd8bf3cc3a1dff07ae403e6bee8882f33843
parent7c11bac7a2a7bcf2f1c7edd589164c815bc0aa49
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.02682 seconds and 5 git commands to generate.