Compact LevelDB in aptly db cleanup. #19

This commit is contained in:
Andrey Smirnov
2014-03-17 16:22:49 +04:00
parent b13e50a570
commit 6a42aad322
11 changed files with 37 additions and 0 deletions
+4
View File
@@ -143,6 +143,10 @@ func aptlyDbCleanup(cmd *commander.Command, args []string) error {
context.progress.Printf("Disk space freed: %.2f GiB...\n", float64(totalSize)/1024.0/1024.0/1024.0)
}
context.progress.Printf("Compacting database...\n")
err = context.database.CompactDB()
return err
}