summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-10-07 23:24:41 +0100
committerGitHub <noreply@github.com>2020-10-07 23:24:41 +0100
commit144fa5a53746387b1c124c10cd7d70cb5cebc26f (patch)
treec6ce8db9bc2770ce1566bf2a88b2d8e026e4f1f2 /modules
parent1bf40ca0df431afdca1b3a3836a57914401205d3 (diff)
downloadgitea-144fa5a53746387b1c124c10cd7d70cb5cebc26f.tar.gz
gitea-144fa5a53746387b1c124c10cd7d70cb5cebc26f.zip
Avoid setting the CONN_STR in issue indexer queue unless it is meant to be set (#13069)
Since the move to common leveldb and common redis the disk queue code (#12385) will check the connection string before defaulting to the DATADIR. Therefore we should ensure that the connection string is kept empty unless it is actually set. Unforunately the issue indexer was missed in #13025 this PR fixes this omission Fix #13062 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/indexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/indexer.go b/modules/setting/indexer.go
index 36785b9ab5..842ef8ea41 100644
--- a/modules/setting/indexer.go
+++ b/modules/setting/indexer.go
@@ -77,7 +77,7 @@ func newIndexerService() {
Indexer.IssueQueueType = sec.Key("ISSUE_INDEXER_QUEUE_TYPE").MustString(LevelQueueType)
Indexer.IssueQueueDir = sec.Key("ISSUE_INDEXER_QUEUE_DIR").MustString(path.Join(AppDataPath, "indexers/issues.queue"))
- Indexer.IssueQueueConnStr = sec.Key("ISSUE_INDEXER_QUEUE_CONN_STR").MustString(path.Join(AppDataPath, ""))
+ Indexer.IssueQueueConnStr = sec.Key("ISSUE_INDEXER_QUEUE_CONN_STR").MustString("")
Indexer.IssueQueueBatchNumber = sec.Key("ISSUE_INDEXER_QUEUE_BATCH_NUMBER").MustInt(20)
Indexer.RepoIndexerEnabled = sec.Key("REPO_INDEXER_ENABLED").MustBool(false)