Skip to content

Commit

Permalink
Fix logdel headroom bug
Browse files Browse the repository at this point in the history
Signed-off-by: Morgan Douglas <mdouglas47@bloomberg.net>
  • Loading branch information
morgando committed Dec 10, 2024
1 parent b2f0cd2 commit c60f6d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bdb/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -3744,7 +3744,7 @@ static void delete_log_files_int(bdb_state_type *bdb_state)
bdb_state->attr->log_delete_low_headroom_breaktime) {
logmsg(LOGMSG_WARN, "low_headroom, but tried %d times and giving up\n",
bdb_state->attr->log_delete_low_headroom_breaktime);
return;
goto send_local_lowfilenum;
}

delete_adjacent = 1;
Expand Down Expand Up @@ -4057,6 +4057,8 @@ static void delete_log_files_int(bdb_state_type *bdb_state)

free(list);
}

send_local_lowfilenum:
if (list == NULL || send_filenum == 0) {
DB_LOGC *logc;
DBT logrec;
Expand Down

0 comments on commit c60f6d1

Please sign in to comment.