Skip to content

Commit

Permalink
Merge pull request #17953 from vrothberg/fix-17859
Browse files Browse the repository at this point in the history
sqlite: do not `Ping()` after connecting
  • Loading branch information
openshift-merge-robot authored Mar 28, 2023
2 parents ac2efdb + cdb5b3e commit 62321a2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libpod/sqlite_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ func NewSqliteState(runtime *Runtime) (_ State, defErr error) {

state.conn = conn

if err := state.conn.Ping(); err != nil {
return nil, fmt.Errorf("cannot connect to database: %w", err)
}

// Migrate schema (if necessary)
if err := state.migrateSchemaIfNecessary(); err != nil {
return nil, err
Expand Down

0 comments on commit 62321a2

Please sign in to comment.