Skip to content

Commit

Permalink
call cleanup regularly
Browse files Browse the repository at this point in the history
  • Loading branch information
romanjokl committed Nov 14, 2024
1 parent acba29b commit f05a084
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,8 @@ database_archive(struct dbhandle *h)
if (err)
return err;

database_cleanup();

/* lazily reset database, don't (re)alloc */
h->off = 0;
h->db->entries = 0;
Expand Down

0 comments on commit f05a084

Please sign in to comment.