Skip to content

Commit

Permalink
Performs VACUUM on cache.db (#827)
Browse files Browse the repository at this point in the history
* Performs VACUUM on cache.db

* remove trailling whitespace
  • Loading branch information
fernandog committed Jul 29, 2016
1 parent 16857d9 commit 6f51072
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sickbeard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,10 @@ def path_leaf(path):
cache_db_con = db.DBConnection('cache.db')
db.upgradeDatabase(cache_db_con, cache_db.InitialSchema)

# Performs a vacuum on cache.db
logger.log(u"Performing a vacuum on the CACHE database", logger.DEBUG)
cache_db_con.action("VACUUM")

# initialize the failed downloads database
failed_db_con = db.DBConnection('failed.db')
db.upgradeDatabase(failed_db_con, failed_db.InitialSchema)
Expand Down

0 comments on commit 6f51072

Please sign in to comment.