calibredb check_library: Vacuum database when runnning the check

This commit is contained in:
Kovid Goyal 2017-04-05 15:14:30 +05:30
parent 84f7464be5
commit 3d63a57ff4

View File

@ -1369,6 +1369,8 @@ def command_check_library(args, dbpath):
raise SystemExit(1) raise SystemExit(1)
db = LibraryDatabase(dbpath) db = LibraryDatabase(dbpath)
print _('Vacuuming database...')
db.new_api.vacuum()
checker = CheckLibrary(dbpath, db) checker = CheckLibrary(dbpath, db)
checker.scan_library(names, exts) checker.scan_library(names, exts)
for check in checks: for check in checks: