Skip to content

Commit

Permalink
Run DB cleaning once GC is finished (defaults to once per hour)
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <dl6er@dl6er.de>
  • Loading branch information
DL6ER committed Jul 31, 2018
1 parent 8e56b61 commit 805e373
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ void *GC_thread(void *val)
// Have to this outside of the thread lock
// to prevent locking of the resolver
reresolveHostnames();

// After storing data in the database for the next time,
// we should scan for old entries, which will then be deleted
// to free up pages in the database and prevent it from growing
// ever larger and larger
DBdeleteoldqueries = true;
}
sleepms(100);
}
Expand Down

0 comments on commit 805e373

Please sign in to comment.