diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-10-02 13:39:33 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2018-10-02 13:47:53 -0400 |
commit | 7e23fb6c5d252c61125388ec3c7e1313b7f6bb85 (patch) | |
tree | 0a912785ed3e9b8ddc881e308ec3216872ae6fad /libpod/pod_top_linux.go | |
parent | 39d7c869ea9291352e836f3c170d9bd801f9c35c (diff) | |
download | podman-7e23fb6c5d252c61125388ec3c7e1313b7f6bb85.tar.gz podman-7e23fb6c5d252c61125388ec3c7e1313b7f6bb85.tar.bz2 podman-7e23fb6c5d252c61125388ec3c7e1313b7f6bb85.zip |
Fix cleanupRuntime to only save if container is valid
We call cleanup() (which calls cleanupRuntime()) as part of
removing containers, after the container has already been removed
from the database. cleanupRuntime() tries to update and save the
state, which obviously fails if the container no longer exists.
Make the save() conditional on the container not being in the
process of being removed.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/pod_top_linux.go')
0 files changed, 0 insertions, 0 deletions