summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-12 18:58:24 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-12 18:58:24 -0400
commit1b7adf57e94aaccd2abc6c7288947e36bb311c0a (patch)
treec45836d27d10807df9d047548b0ec3a0aec03e01 /models/models.go
parentcfed11f092580ecf47cff43274c7cdd10d07bffd (diff)
downloadgitea-1b7adf57e94aaccd2abc6c7288947e36bb311c0a.tar.gz
gitea-1b7adf57e94aaccd2abc6c7288947e36bb311c0a.zip
fix https://github.com/go-xorm/xorm/issues/161
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go
index 247bcf2f65..283a8f7a93 100644
--- a/models/models.go
+++ b/models/models.go
@@ -77,7 +77,7 @@ func getEngine() (*xorm.Engine, error) {
return nil, fmt.Errorf("Unknown database type: %s", DbCfg.Type)
}
os.MkdirAll(path.Dir(DbCfg.Path), os.ModePerm)
- cnnstr = DbCfg.Path
+ cnnstr = "file:" + DbCfg.Path + "?cache=shared&mode=rwc"
default:
return nil, fmt.Errorf("Unknown database type: %s", DbCfg.Type)
}