gc.sh: sleep before touching primary if any supplemental
commita9e02610332c3f0cd833833a07234071ccdd9f55
authorKyle J. McKay <mackyle@gmail.com>
Sat, 30 Dec 2017 08:53:42 +0000 (30 00:53 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 30 Dec 2017 08:53:42 +0000 (30 00:53 -0800)
tree0d983ea4f3c33e99bae8e10eede0cbdc299ed09b
parent0cb0c6fadbeb15916f3233668da1e608a7941b36
gc.sh: sleep before touching primary if any supplemental

Git sorts the packs it uses by modification time.  It looks in the
most recently modified packs first.

We want it to look in our nice new shiny .bitmap pack first after
a fresh gc has been performed.

We touch the pack to make sure this happens.

However, it's possible that if we just finished building a supplemental
pack and didn't have anything to do for any forks that it could end
up with the same modification time (to the nearest second) as the
supplemental pack ended up with.

Avoid this by sleeping for a second before touching if any supplemental
pack was created during phase II.

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