Skip to content

Commit

Permalink
Drop SQLite max connections
Browse files Browse the repository at this point in the history
The SQLite transaction lock Valentin found is (slightly) faster.
So let's go with that.

Signed-off-by: Matthew Heon <[email protected]>
  • Loading branch information
mheon committed Mar 21, 2023
1 parent 0fbc325 commit 3925cd6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libpod/sqlite_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ func NewSqliteState(runtime *Runtime) (_ State, defErr error) {
}
}()

// Necessary to avoid database locked errors.
conn.SetMaxOpenConns(1)

state.conn = conn

if err := state.conn.Ping(); err != nil {
Expand Down

0 comments on commit 3925cd6

Please sign in to comment.