File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ __do_check() {
40
40
url=$CVMFS_STRATUM0
41
41
fi
42
42
43
+ if [ " x$tag " = " x" ] && is_garbage_collectable $name ; then
44
+ # acquire gc lock
45
+ # waits for gc on the same repository to finish
46
+ # and prevents a gc from starting
47
+ acquire_gc_lock $name check || die " Failed to acquire gc lock for $name "
48
+ trap " release_gc_lock $name " EXIT HUP INT TERM
49
+ fi
50
+
43
51
# do it!
44
52
if [ $check_integrity -ne 0 ]; then
45
53
if ! is_local_upstream $upstream ; then
@@ -71,14 +79,6 @@ __do_check() {
71
79
local with_reflog=
72
80
has_reflog_checksum $name && with_reflog=" -R $( get_reflog_checksum $name ) "
73
81
74
- if [ " x$tag " = " x" ] && is_garbage_collectable $name ; then
75
- # acquire gc lock
76
- # waits for gc on the same repository to finish
77
- # and prevents a gc from starting
78
- acquire_gc_lock $name check || die " Failed to acquire gc lock for $name "
79
- trap " release_gc_lock $name " EXIT HUP INT TERM
80
- fi
81
-
82
82
local user_shell=" $( get_user_shell $name ) "
83
83
local check_cmd
84
84
check_cmd=" $( __swissknife_cmd dbg) check $tag \
You can’t perform that action at this time.
0 commit comments