mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
Vacuum the SQLite DB after running the garbage collector
This commit is contained in:
parent
2923b55f9d
commit
e6e495649c
3 changed files with 12 additions and 0 deletions
|
@ -740,6 +740,9 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
|
|||
printMsg(lvlError, format("deleting unused links..."));
|
||||
removeUnusedLinks(state);
|
||||
}
|
||||
|
||||
/* While we're at it, vacuum the database. */
|
||||
if (options.action == GCOptions::gcDeleteDead) vacuumDB();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue