summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2021-10-27 13:38:43 +0000
committerAdrian Reber <areber@redhat.com>2021-10-27 13:40:54 +0000
commitdcbf5cae128b2bed895899551b48fab0105ea69e (patch)
treeec8088e424db6d1f32d49b1f2a6dd31b4632603e
parent979b6312286b4bd993d7be0413e1e95c4a0bad56 (diff)
downloadpodman-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.go1
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