Skip to content

Remove unused variable #5038

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 2 additions & 4 deletions bdb/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ int bdb_recovery_timestamp_fulfills_log_age_requirement(int32_t recovery_timesta
return (time(NULL) - recovery_timestamp) >= bdb_state->attr->min_keep_logs_age;
}

static int bdb_need_log_to_fulfill_log_age_requirement(int min_keep_logs_age,
int filenum)
static int bdb_need_log_to_fulfill_log_age_requirement(int filenum)
{
struct checkpoint_list *ckp = NULL;
if (!ckp_lst_ready)
Expand Down Expand Up @@ -3901,8 +3900,7 @@ static void delete_log_files_int(bdb_state_type *bdb_state)
}

if ((gbl_new_snapisol_asof || gbl_modsnap_asof)
&& bdb_need_log_to_fulfill_log_age_requirement(
bdb_state->attr->min_keep_logs_age, filenum)) {
&& bdb_need_log_to_fulfill_log_age_requirement(filenum)) {
Pthread_mutex_unlock(&bdb_gbl_recoverable_lsn_mutex);
if (bdb_state->attr->debug_log_deletion)
logmsg(LOGMSG_USER, "not ok to delete log, log file needed "
Expand Down