1
0
forked from MTSR/mapserver

unsafe access again

This commit is contained in:
NatureFreshMilk 2019-01-24 10:21:14 +01:00
parent 78d8dcc769
commit 4ec37f2840

View File

@ -69,7 +69,7 @@ func (db *Sqlite3Accessor) RemoveTile(pos *coords.TileCoords) error {
func NewSqliteAccessor(filename string) (*Sqlite3Accessor, error) {
//TODO: flag/config for unsafe db access
db, err := sql.Open("sqlite3", filename+"?_timeout=500&_journal_mode=MEMORY")
db, err := sql.Open("sqlite3", filename+"?_timeout=500&_journal_mode=MEMORY&_synchronous=OFF")
db.SetMaxOpenConns(1)
if err != nil {