Skip to content

Commit 4629080

Browse files
committed
refine comment
1 parent 7a30dab commit 4629080

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/sqlite/sqlite.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ func newSqliteBackend(dsn string, opts ...backend.BackendOption) *sqliteBackend
5252
panic(err)
5353
}
5454

55-
// FIXME addresses "database is locked (5) (SQLITE_BUSY)" error
55+
// SQLite does not support multiple writers on the database, see https://www.sqlite.org/faq.html#q5
56+
// A frequently used workaround is to have a single connection, effectively acting as a mutex
57+
// See https://github.com/mattn/go-sqlite3/issues/274 for more context
5658
db.SetMaxOpenConns(1)
5759

5860
return &sqliteBackend{

0 commit comments

Comments
 (0)