X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fmain.c;h=d1ee84eae836739c3addd70cb7ec63a337af682c;hb=f465e9787f5b70d4a8f3761c60b8d6e4161e9628;hp=0f584487a09819b58de9602718bb9a197ffc59ef;hpb=bdafebb5195cfda710b32b019f9cac6c4d86f42a;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 0f584487a..d1ee84eae 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -2617,14 +2617,14 @@ static int handle_index_data(struct relay_stream *stream, uint64_t net_seq_num, /* Put ref on previous index_file. */ if (stream->index_file) { - lttng_index_file_put(stream->index_file); + relay_index_file_put(stream->index_file); stream->index_file = NULL; } major = stream->trace->session->major; minor = stream->trace->session->minor; - stream->index_file = lttng_index_file_create(stream->path_name, + stream->index_file = relay_index_file_create(stream->path_name, stream->channel_name, - -1, -1, stream->tracefile_size, + stream->tracefile_size, tracefile_array_get_file_index_head(stream->tfa), lttng_to_index_major(major, minor), lttng_to_index_minor(major, minor));