containerd/core/snapshots/storage
Amit Barve fe5f85c7de Fix incorrect comment about ordering of parent layers
The ParentIDs array in the Snapshot type is populated in the reverse order i.e the
immediate parent is at the 0th index and the oldest parent is at the last index. It can be
seen here:
https://github.com/containerd/containerd/blob/main/core/snapshots/storage/bolt.go#L492
When applying these layers, the parent layer at the last index should be applied first and
the parent layer at the 0th index should be applied last. However, the comment above the
Snapshot type says the exact opposite thing.  This commit fixes that comment.

Signed-off-by: Amit Barve <ambarve@microsoft.com>
2024-06-14 11:48:06 -07:00
..
bolt_test.go mv internal/testutil pkg/testutil 2024-03-04 17:00:39 +09:00
bolt.go Switch to new errdefs package 2024-01-25 22:18:45 -08:00
metastore_bench_test.go Move snapshots to core/snapshots 2024-01-17 09:54:09 -08:00
metastore_test.go Switch to new errdefs package 2024-01-25 22:18:45 -08:00
metastore.go Fix incorrect comment about ordering of parent layers 2024-06-14 11:48:06 -07:00