1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-16 07:18:37 +00:00

Fix SQLite concurrency problems by using BEGIN IMMEDIATE (#10368) (#10493)

This commit is contained in:
guillep2k
2020-02-26 23:30:57 -03:00
committed by GitHub
parent 7bf5834f2c
commit 93860af542
3 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ func MainTest(m *testing.M, pathToGiteaRoot string) {
func createTestEngine(fixturesDir string) error {
var err error
x, err = xorm.NewEngine("sqlite3", "file::memory:?cache=shared")
x, err = xorm.NewEngine("sqlite3", "file::memory:?cache=shared&_txlock=immediate")
if err != nil {
return err
}