Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid setting the CONN_STR in queues unless it is meant to be set #13025

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Oct 3, 2020

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.

Fix #13023

Signed-off-by: Andrew Thornton art27@cantab.net

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 go-gitea#13023

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added this to the 1.13.0 milestone Oct 3, 2020
@techknowlogick techknowlogick changed the title Avoid setitng the CONN_STR in queues unless it is meant to be set Avoid setting the CONN_STR in queues unless it is meant to be set Oct 3, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Oct 4, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 4, 2020
@zeripath zeripath merged commit 3f3a4f5 into go-gitea:master Oct 4, 2020
@zeripath zeripath deleted the fix-13023-ensure-connection-string-is-empty-if-not-set branch October 4, 2020 17:12
zeripath added a commit to zeripath/gitea that referenced this pull request Oct 7, 2020
…to be set

Since the move to common leveldb and common redis the disk queue code (go-gitea#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 go-gitea#13025 this PR fixes this omission

Fix go-gitea#13062

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added a commit that referenced this pull request Oct 7, 2020
…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>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean install from Docker gitea/gitea:latest ends with error 'open /data/gitea/LOG: is a directory'
4 participants