Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_systemd: remove unreferenced field from flb_systemd_config #9782

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions plugins/in_systemd/systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,17 +296,6 @@ static int in_systemd_collect(struct flb_input_instance *ins,
}
}

if (ctx->lowercase == FLB_TRUE) {
ret = sd_journal_get_data_threshold(ctx->j, &ctx->threshold);
if (ret != 0) {
flb_plg_error(ctx->ins,
"error setting up systemd data. "
"sd_journal_get_data_threshold() return value '%i'",
ret);
return FLB_SYSTEMD_ERROR;
}
}

while ((ret_j = sd_journal_next(ctx->j)) > 0) {
/* If the tag is composed dynamically, gather the Systemd Unit name */
if (ctx->dynamic_tag) {
Expand Down
1 change: 0 additions & 1 deletion plugins/in_systemd/systemd_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ struct flb_systemd_config {
int dynamic_tag;
int max_fields; /* max number of fields per record */
int max_entries; /* max number of records per iteration */
size_t threshold; /* threshold for retriveing journal */

#ifdef FLB_HAVE_SQLDB
flb_sds_t db_path;
Expand Down
Loading