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 11, 2024
1 parent f31e485 commit 7606114
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 @@ -3712,7 +3712,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 @@ -4042,6 +4042,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 7606114

Please sign in to comment.