summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-07-25 07:47:43 +0800
committerUnknwon <u@gogs.io>2015-07-25 07:47:43 +0800
commitc0883a51a03d2f7af56c20cbf054b9106528c75f (patch)
tree6ffff02f1dc9b63ae763b1b5c413fe23a7997506 /models
parentb838e949806b8b50b339d4a3fb0f08b873d74a83 (diff)
downloadgitea-c0883a51a03d2f7af56c20cbf054b9106528c75f.tar.gz
gitea-c0883a51a03d2f7af56c20cbf054b9106528c75f.zip
mirror fix on #1111
Diffstat (limited to 'models')
-rw-r--r--models/repo.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/repo.go b/models/repo.go
index 0254e8f004..35f63e12a8 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1037,7 +1037,7 @@ var (
// Prevent duplicate tasks.
isMirrorUpdating = false
isGitFscking = false
- isCheckRepos = false
+ isCheckingRepos = false
)
// MirrorUpdate checks and updates mirror repositories.
@@ -1130,11 +1130,11 @@ func GitGcRepos() error {
}
func CheckRepoStats() {
- if isCheckRepos {
+ if isCheckingRepos {
return
}
- isCheckRepos = true
- defer func() { isCheckRepos = false }()
+ isCheckingRepos = true
+ defer func() { isCheckingRepos = false }()
// Check count watchers
results_watch, err := x.Query("SELECT r.id FROM `repository` r WHERE r.num_watches!=(SELECT count(*) FROM `watch` WHERE repo_id=r.id)")