summaryrefslogtreecommitdiff
path: root/ftparchive/cachedb.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-03-26 13:44:09 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-03-26 13:44:09 +0100
commit1e2acb1a23c8f3c3a78e36462bc469e6d9a039a7 (patch)
tree5d80ea4e4bfb4fa2f9a1aee44cbf95a91168d42f /ftparchive/cachedb.cc
parent5426445ae86c87f9f7589573daaf273f2fe93c56 (diff)
* ftparchive/cachedb.cc:
- when apt-ftparchive clean is used, compact the database at the end (thanks to cprov)
Diffstat (limited to 'ftparchive/cachedb.cc')
-rw-r--r--ftparchive/cachedb.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc
index 8de3a0b9e..ff9a92d32 100644
--- a/ftparchive/cachedb.cc
+++ b/ftparchive/cachedb.cc
@@ -463,6 +463,7 @@ bool CacheDB::Clean()
Cursor->c_del(Cursor,0);
}
+ Dbp->compact(Dbp, NULL, NULL, NULL, NULL, DB_FREE_SPACE, NULL);
return true;
}