1
0
forked from MTSR/mapserver

sync mode = on

This commit is contained in:
NatureFreshMilk 2019-01-24 10:19:13 +01:00
parent 81188f68a7
commit 78d8dcc769

View File

@ -69,9 +69,9 @@ 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&_synchronous=OFF")
db, err := sql.Open("sqlite3", filename+"?_timeout=500&_journal_mode=MEMORY")
db.SetMaxOpenConns(1)
if err != nil {
return nil, err
}