Skip to content

Commit 1369358

Browse files
committed
default to BEGIN IMMEDIATE to reduce likelihood of SQLITE_BUSY errors later
1 parent 34e4130 commit 1369358

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cfg/cfg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ var defaultMaxInvitationsPerUser = 5
139139
// FillDefaults replaces missing or invalid settings with defaults.
140140
func (c *Config) FillDefaults() {
141141
if c.DatabaseOptions == "" {
142-
c.DatabaseOptions = "_journal_mode=WAL&_synchronous=1&_busy_timeout=5000"
142+
c.DatabaseOptions = "_journal_mode=WAL&_synchronous=1&_busy_timeout=5000&_txlock=immediate"
143143
}
144144

145145
if c.MaxInvitationsPerUser == nil {

0 commit comments

Comments
 (0)