summaryrefslogtreecommitdiffstats
path: root/files/reprepro/snapshots
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-07 15:02:27 +0000
committerintrigeri <intrigeri@boum.org>2016-05-07 15:02:27 +0000
commit8b8f13bd0366a1e03196c56e544224db7dc6d80e (patch)
tree44e722483071a558ec25c50c33805af11061ac9c /files/reprepro/snapshots
parent07e67b2dc0231e6ec1ad2f921dd5f01b4c10f4fe (diff)
Set a big cache size, otherwise we can't open a big DB.
Diffstat (limited to 'files/reprepro/snapshots')
-rwxr-xr-xfiles/reprepro/snapshots/time_based/tails-compact-reprepro-db1
1 files changed, 1 insertions, 0 deletions
diff --git a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
index 4992b54..ae311d2 100755
--- a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
+++ b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
@@ -22,6 +22,7 @@ size_before = os.path.getsize(args.path)
print("Before compacting: {size} bytes".format(size=size_before))
d = db.DB()
+d.set_cachesize(1, 0) # 1 GB
d.open(args.path, dbname=args.db)
for i in range(0, 10):
d.compact(compact_fillpercent=args.compact_fillpercent,