mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-08 06:04:10 +00:00
docs(database): fix proof claim — SetMaxOpenConns(1) is sufficient, not necessary
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
314f877d78
commit
ca49f5672a
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ func TestInitDBConcurrencyConfig(t *testing.T) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestConcurrentWrites proves that SetMaxOpenConns(1) is necessary and
|
// TestConcurrentWrites proves that SetMaxOpenConns(1) is sufficient to prevent
|
||||||
// sufficient to prevent the "database is locked" errors in issue #3739.
|
// the "database is locked" errors in issue #3739.
|
||||||
//
|
//
|
||||||
// Both sub-tests use _busy_timeout=10ms so that lock contention surfaces
|
// Both sub-tests use _busy_timeout=10ms so that lock contention surfaces
|
||||||
// within milliseconds rather than the go-sqlite3 default of 5 000 ms.
|
// within milliseconds rather than the go-sqlite3 default of 5 000 ms.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue