]> source.dussan.org Git - gitea.git/commit
Avoid setitng the CONN_STR in queues unless it is meant to be set (#13025)
authorzeripath <art27@cantab.net>
Sun, 4 Oct 2020 17:12:26 +0000 (18:12 +0100)
committerGitHub <noreply@github.com>
Sun, 4 Oct 2020 17:12:26 +0000 (18:12 +0100)
commit3f3a4f5b4191d315da083fb975a74a985730e459
treee0e0bb980c328ccb7937358334b88491cc62bc2a
parent72636fd6642fcae6e7447dd499cb097c5c65ab32
Avoid setitng the CONN_STR in queues unless it is meant to be set (#13025)

Since the move to common leveldb and common redis the disk queue code
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.

Fix #13023

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/setting/queue.go
modules/setting/task.go