From 8cd987af0c4669623ec350a50096433583e74828 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sun, 31 Dec 2017 15:45:46 +0100 Subject: Add repo-sync-releases admin command (#3254) * Add repo-sync-releases admin command Will help recovering corrupted database, see #3247 * Load repos in chunks of 10, exit with error if unable to get a list, scan private repos, fix typo * Fix debug output about num releases * Introduce RepositoryListDefaultPageSize constant, set to 64 Use it from the new admin command * Use RepositoryListDefaultPageSize in more places * Document RepositoryListDefaultPageSize --- models/repo_indexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/repo_indexer.go') diff --git a/models/repo_indexer.go b/models/repo_indexer.go index 4877d339f8..8cc08904ed 100644 --- a/models/repo_indexer.go +++ b/models/repo_indexer.go @@ -81,7 +81,7 @@ func populateRepoIndexer() error { for page := 1; ; page++ { repos, _, err := SearchRepositoryByName(&SearchRepoOptions{ Page: page, - PageSize: 10, + PageSize: RepositoryListDefaultPageSize, OrderBy: SearchOrderByID, Private: true, }) -- cgit v1.2.3