Skip to content

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Feb 26, 2024

Fixes / cleans up some outstanding items from #1627 .

@giuseppe PTAL.

SetBigData itself calls saveFor; so doing that before raises
fewer questions about stale data / stepping over each other.

The change in timing is externally-observable, but should hopefully
not matter much in practice, because this code is typically called
from layerStore.create as a part of an atomic create+populate operation
proptected by incompleteFlag.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This mirrors a similar check later in pkg/chunked.GetDiffer, we
just fail sooner.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Copy link
Member

@rhatdan rhatdan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

openshift-ci bot commented Feb 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, mtrmac, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [giuseppe,mtrmac,rhatdan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@giuseppe
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Feb 27, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 387d7c8 into containers:main Feb 27, 2024
@mtrmac mtrmac deleted the chunked-cleanups branch February 27, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants