SQLite has a query timeout. Hopefully fixes most 'database locked' errors (#1961)

* SQLite has a query timeout. Fixes 'database locked' errors
This commit is contained in:
Kim "BKC" Carlbäcker 2017-06-15 04:51:17 +02:00 committed by GitHub
parent 31b5e9177f
commit bf48c8ebdd
2 changed files with 5 additions and 1 deletions

2
conf/app.ini vendored
View file

@ -166,6 +166,8 @@ PASSWD =
SSL_MODE = disable
; For "sqlite3" and "tidb", use absolute path when you start as service
PATH = data/gitea.db
; For "sqlite3" only. Query timeout
SQLITE_TIMEOUT = 500
[indexer]
ISSUE_INDEXER_PATH = indexers/issues.bleve