summaryrefslogtreecommitdiffstats
path: root/files/reprepro/snapshots
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-07 15:23:19 +0000
committerintrigeri <intrigeri@boum.org>2016-05-07 15:23:19 +0000
commit1036408ef59b61f580bce2c82ffef997dabdffa3 (patch)
tree2e1aa29e6e2ae5b55b052d5f9572a3aaf6d521b1 /files/reprepro/snapshots
parent24fa0ce0c6af27dc6b83d225ab35378de705e608 (diff)
Do less compaction passes.
I've not seen passes after the 3rd one save space.
Diffstat (limited to 'files/reprepro/snapshots')
-rwxr-xr-xfiles/reprepro/snapshots/time_based/tails-compact-reprepro-db2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
index 75a1a14..b0a4169 100755
--- a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
+++ b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
@@ -24,7 +24,7 @@ print("Before compacting: {size} bytes".format(size=size_before))
d = db.DB()
d.set_cachesize(0, 536870912) # 512 MB
d.open(args.path, dbname=args.db)
-for i in range(0, 10):
+for i in range(0, 4):
d.compact(compact_fillpercent=args.compact_fillpercent,
flags=db.DB_FREE_SPACE)
print("After pass {n}: {size} bytes"