|
|
@ -1881,10 +1881,9 @@ func DeleteRepositoryArchives() error { |
|
|
|
|
|
|
|
|
|
|
|
// DeleteOldRepositoryArchives deletes old repository archives.
|
|
|
|
// DeleteOldRepositoryArchives deletes old repository archives.
|
|
|
|
func DeleteOldRepositoryArchives() { |
|
|
|
func DeleteOldRepositoryArchives() { |
|
|
|
if taskStatusTable.IsRunning(archiveCleanup) { |
|
|
|
if !taskStatusTable.StartIfNotRunning(archiveCleanup) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
taskStatusTable.Start(archiveCleanup) |
|
|
|
|
|
|
|
defer taskStatusTable.Stop(archiveCleanup) |
|
|
|
defer taskStatusTable.Stop(archiveCleanup) |
|
|
|
|
|
|
|
|
|
|
|
log.Trace("Doing: ArchiveCleanup") |
|
|
|
log.Trace("Doing: ArchiveCleanup") |
|
|
@ -2025,10 +2024,9 @@ const ( |
|
|
|
|
|
|
|
|
|
|
|
// GitFsck calls 'git fsck' to check repository health.
|
|
|
|
// GitFsck calls 'git fsck' to check repository health.
|
|
|
|
func GitFsck() { |
|
|
|
func GitFsck() { |
|
|
|
if taskStatusTable.IsRunning(gitFsck) { |
|
|
|
if !taskStatusTable.StartIfNotRunning(gitFsck) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
taskStatusTable.Start(gitFsck) |
|
|
|
|
|
|
|
defer taskStatusTable.Stop(gitFsck) |
|
|
|
defer taskStatusTable.Stop(gitFsck) |
|
|
|
|
|
|
|
|
|
|
|
log.Trace("Doing: GitFsck") |
|
|
|
log.Trace("Doing: GitFsck") |
|
|
@ -2097,10 +2095,9 @@ func repoStatsCheck(checker *repoChecker) { |
|
|
|
|
|
|
|
|
|
|
|
// CheckRepoStats checks the repository stats
|
|
|
|
// CheckRepoStats checks the repository stats
|
|
|
|
func CheckRepoStats() { |
|
|
|
func CheckRepoStats() { |
|
|
|
if taskStatusTable.IsRunning(checkRepos) { |
|
|
|
if !taskStatusTable.StartIfNotRunning(checkRepos) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
taskStatusTable.Start(checkRepos) |
|
|
|
|
|
|
|
defer taskStatusTable.Stop(checkRepos) |
|
|
|
defer taskStatusTable.Stop(checkRepos) |
|
|
|
|
|
|
|
|
|
|
|
log.Trace("Doing: CheckRepoStats") |
|
|
|
log.Trace("Doing: CheckRepoStats") |
|
|
|