diff options
author | Matthew Heon <mheon@redhat.com> | 2021-10-20 10:29:32 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-10-20 14:56:22 -0400 |
commit | 30245f5849901822469a58a13387e2f55415def6 (patch) | |
tree | ff9d10084aa651b04877ccee1c49da6db352c0a1 /pkg/domain/infra/tunnel/generate.go | |
parent | eba281c3e0e69533427d3eb5c66c60b5ca038c1b (diff) | |
download | podman-30245f5849901822469a58a13387e2f55415def6.tar.gz podman-30245f5849901822469a58a13387e2f55415def6.tar.bz2 podman-30245f5849901822469a58a13387e2f55415def6.zip |
Remove infra ID from DB before removing containers
If we interrupt pod removal between removing containers and
removing the whole pod, the infra ID was still in the DB, and
most pod operations would try to retrieve the infra container
(and would this fail). Clear the infra ID from the DB just before
we remove all containers to prevent this.
Fixes #12034
[NO NEW TESTS NEEDED] This is a very narrow race and I have no
idea how to repro it.
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'pkg/domain/infra/tunnel/generate.go')
0 files changed, 0 insertions, 0 deletions