sqlite: fix missing Commit() in RemovePodContainers()

We have to Commit() the transaction. Note this is only in a rare pod
remove code path and very unlikely to ever be used.

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2023-11-28 14:22:18 +01:00
parent 8387d2dfaa
commit e26f677b16

View File

@ -1697,6 +1697,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
}