diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-13T18·33-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-13T18·33-0400 |
commit | e6e495649cc1f324cd0a66cfaf3c4bdf21522e63 (patch) | |
tree | 48730d41c13b4ac7dbfada7203f0d542aefe02f5 /src/libstore/gc.cc | |
parent | 2923b55f9d67bda340053a27e08f7bcddc025f7c (diff) |
Vacuum the SQLite DB after running the garbage collector
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r-- | src/libstore/gc.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index dc1de48ea605..4a025a8feb92 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -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(); } |