jobd/gc.sh: compute newdeltas setting after make_repack_dir
commit13e895cac0e6b5fa17fa74c963f7f5c6dcd8242c
authorKyle J. McKay <mackyle@gmail.com>
Tue, 30 Jun 2020 03:56:39 +0000 (29 20:56 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 30 Jun 2020 03:56:39 +0000 (29 20:56 -0700)
tree83fbaa4e80d72f93163f56288f82d46a6511ace8
parent7497e3829075ed202b1cae02d57b2f5a67536d34
jobd/gc.sh: compute newdeltas setting after make_repack_dir

In order to prepare for checking the "repack" "signature" hash,
move the computation of the `$newdeltas` setting to after the call
to `make_repack_dir`.

This is necessary because during the computation of the `$newdeltas`
setting, in certain circumstances, "mini" maintenance gets performed.

That "mini" maintenance could potentially disturb the current
set of packs in the repository.

However, if we are potentially in a `$skipgc` situation and the
final "repack" "signature" hash matches, then we will abort gc
early with nothing to do and we need to be able to do that before
any "mini" maintenance takes place while at the same time the
check cannot be done until after `make_repack_dir` has been run.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/gc.sh