Skip to content

Commit

Permalink
Merge pull request #20813 from Luap99/sqlite-removepodcontainers
Browse files Browse the repository at this point in the history
sqlite: fix missing Commit() in RemovePodContainers()
  • Loading branch information
openshift-merge-bot[bot] authored Nov 28, 2023
2 parents 9627d30 + e26f677 commit 2645f91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libpod/sqlite_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,10 @@ func (s *SQLiteState) RemovePodContainers(pod *Pod) (defErr error) {
return err
}

if err := tx.Commit(); err != nil {
return fmt.Errorf("committing pod containers %s removal transaction: %w", pod.ID(), err)
}

return nil
}

Expand Down

0 comments on commit 2645f91

Please sign in to comment.