Merge pull request #20813 from Luap99/sqlite-removepodcontainers

sqlite: fix missing Commit() in RemovePodContainers()
This commit is contained in:
openshift-merge-bot[bot] 2023-11-28 16:07:18 +00:00 committed by GitHub
commit 2645f91bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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
}