aboutsummaryrefslogtreecommitdiffstats
path: root/grokmirror
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2018-04-19 16:37:08 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2018-04-19 16:37:08 -0400
commitb5d551194fcd2518fc86bea9e1ed91c433842017 (patch)
treeae429968d146e39144f7ad8ef18e5967864f61aa /grokmirror
parent7ccfb3510b3085a716f01255860e6cce8bbb43fa (diff)
downloadgrokmirror-b5d551194fcd2518fc86bea9e1ed91c433842017.tar.gz
Don't trigger full repack when --repack-all-quick
We don't want to trigger full repack if we're specifically wanting to run with --repack-all-quick. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'grokmirror')
-rwxr-xr-xgrokmirror/fsck.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grokmirror/fsck.py b/grokmirror/fsck.py
index 297791a..bd6ab47 100755
--- a/grokmirror/fsck.py
+++ b/grokmirror/fsck.py
@@ -387,7 +387,8 @@ def fsck_mirror(name, config, verbose=False, force=False, conn_only=False, repac
# is it time to trigger full repack?
# We -1 because if we want a repack every 10th time, then we need to trigger
# when current repack count is 9.
- if quick_repack_count >= full_repack_every-1:
+ # however, don't do a full repack if we're doing a --repack-all-quick
+ if not repack_all_quick and quick_repack_count >= full_repack_every-1:
logger.debug('Time to do full repack on %s',
fullpath)
full_repack = True