From 3d63a57ff4e0b3d2ee5eadb5a5693b245f37c078 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 Apr 2017 15:14:30 +0530 Subject: [PATCH] calibredb check_library: Vacuum database when runnning the check --- src/calibre/library/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/library/cli.py b/src/calibre/library/cli.py index 5f62690e34..eacf9297b9 100644 --- a/src/calibre/library/cli.py +++ b/src/calibre/library/cli.py @@ -1369,6 +1369,8 @@ def command_check_library(args, dbpath): raise SystemExit(1) db = LibraryDatabase(dbpath) + print _('Vacuuming database...') + db.new_api.vacuum() checker = CheckLibrary(dbpath, db) checker.scan_library(names, exts) for check in checks: