diff options
author | Adrian Reber <areber@redhat.com> | 2021-10-27 13:38:43 +0000 |
---|---|---|
committer | Adrian Reber <areber@redhat.com> | 2021-10-27 13:40:54 +0000 |
commit | dcbf5cae128b2bed895899551b48fab0105ea69e (patch) | |
tree | ec8088e424db6d1f32d49b1f2a6dd31b4632603e | |
parent | 979b6312286b4bd993d7be0413e1e95c4a0bad56 (diff) | |
download | podman-dcbf5cae128b2bed895899551b48fab0105ea69e.tar.gz podman-dcbf5cae128b2bed895899551b48fab0105ea69e.tar.bz2 podman-dcbf5cae128b2bed895899551b48fab0105ea69e.zip |
Set Checkpointed state to false after restore
A restored container still had the state set to 'Checkpointed: true'
which seems wrong if it running again.
[NO NEW TESTS NEEDED]
Signed-off-by: Adrian Reber <areber@redhat.com>
-rw-r--r-- | libpod/container_internal_linux.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index d3151f7e0..2fd519990 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -1546,6 +1546,7 @@ func (c *Container) restore(ctx context.Context, options ContainerCheckpointOpti logrus.Debugf("Restored container %s", c.ID()) c.state.State = define.ContainerStateRunning + c.state.Checkpointed = false if !options.Keep { // Delete all checkpoint related files. At this point, in theory, all files |