Hi,

intrig...@debian.org wrote (06 May 2016 19:57:00 GMT) :
> But would it be possible to have one extra operation, that one could
> run from time to time, and that compacts references.db [...]

I did a bit more research, and my understanding is that this problem
could be solved with a reprepro wrapper, called e.g. `reprepro
_reclaimdiskspace' that would:

 * be aware of reprepro's own locking, if any
 * call DB->compact() repeatedly, passing it the DB_FREE_SPACE flag
   and a low compact_fillpercent

If someone wants to draft this (perhaps allowing one to pass a custom
value for compact_fillpercent on the command-line), I'd be happy to
test it on a copy of my production data, and to report back how it
fares in practice :)

References:

   
https://docs.oracle.com/cd/E17076_02/html/programmer_reference/am_misc_diskspace.html
   https://docs.oracle.com/cd/E17076_02/html/api_reference/C/dbcompact.html

Cheers,
--
intrigeri

Reply via email to