Add a comment to help future maintainers
Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
6c173a412b
commit
5bf717bb16
3
store.go
3
store.go
|
|
@ -3009,6 +3009,9 @@ func (s *store) ApplyStagedLayer(args ApplyStagedLayerOptions) (*Layer, error) {
|
|||
return layer, err
|
||||
}
|
||||
if err == nil {
|
||||
// This code path exists only for cmd/containers/storage.applyDiffUsingStagingDirectory; we have tests that
|
||||
// assume layer creation and applying a staged layer are separate steps. Production pull code always uses the
|
||||
// other path, where layer creation is atomic.
|
||||
return layer, rlstore.applyDiffFromStagingDirectory(args.ID, args.DiffOutput, args.DiffOptions)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue