msg.u.rotate_channel.metadata = metadata;
if (output->type == CONSUMER_DST_NET) {
- fprintf(stderr, "SUBDIR: %s\n", output->subdir);
+ fprintf(stderr, "BASE: %s\n", output->dst.net.base_dir);
fprintf(stderr, "CHUNK: %s\n", output->chunk_path);
msg.u.rotate_channel.relayd_id = output->net_seq_index;
- snprintf(msg.u.rotate_channel.pathname, PATH_MAX, "%s/%s/%s",
- output->subdir,
+ snprintf(msg.u.rotate_channel.pathname, PATH_MAX, "%s%s%s",
+ output->dst.net.base_dir,
output->chunk_path, app_pathname);
fprintf(stderr, "SENDING: %s\n", msg.u.rotate_channel.pathname);
} else {
msg.u.rotate_channel.relayd_id = (uint64_t) -1ULL;
- snprintf(msg.u.rotate_channel.pathname, PATH_MAX, "%s/%s/%s",
+ snprintf(msg.u.rotate_channel.pathname, PATH_MAX, "%s%s%s",
output->dst.session_root_path,
output->chunk_path, app_pathname);
fprintf(stderr, "rotate to %s\n",
msg.u.rotate_channel.pathname);
-
}
health_code_update();