aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2021-10-27 13:38:43 +0000
committerMatthew Heon <matthew.heon@pm.me>2021-11-12 11:08:25 -0500
commit6bf6d72372005447a3f4a09f31b08e0202f99bc4 (patch)
tree3604233a5e8f34dd8c34255f2451396cf602deb7
parent2d6252b98a94482346cc8dd16f97b4c59d16dc4d (diff)
downloadpodman-6bf6d72372005447a3f4a09f31b08e0202f99bc4.tar.gz
podman-6bf6d72372005447a3f4a09f31b08e0202f99bc4.tar.bz2
podman-6bf6d72372005447a3f4a09f31b08e0202f99bc4.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 310110679..208e089b5 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -1483,6 +1483,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