Skip to content

cr: fix checkpoint from image getting skipped#4544

Merged
estesp merged 1 commit intocontainerd:masterfrom
schrej:patch-1
Sep 16, 2020
Merged

cr: fix checkpoint from image getting skipped#4544
estesp merged 1 commit intocontainerd:masterfrom
schrej:patch-1

Conversation

@schrej
Copy link
Copy Markdown
Contributor

@schrej schrej commented Sep 8, 2020

This fixes an issue with restoring from a checkpoint image. One either restores from an image or a path, but currently restoring from an image only works if a path is set as well.

It looks like a simple logical error: The path apparently is supposed to take precedence over the image, so restoring form an image should only be done when no checkpoint path is set. Therefore a checkpointPath == "" makes more sense than checkpointPath != "".

I haven't tested this (yet), but I'll do so when I have the time.

Fix restoring from a checkpoint image always getting skipped when no checkpoint image path is set. As one restores either from an image OR a path, this makes no sense.

Signed-off-by: Jakob Schrettenbrunner <[email protected]>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 8, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 8, 2020

Build succeeded.

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit 373cbc2 into containerd:master Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants