Skip to content

Conversation

Desiki-high
Copy link
Collaborator

@Desiki-high Desiki-high commented Jun 1, 2023

To rewrite gc, we need to know the latest used time of each layer.

Changes:

  1. refactor adapter.Content: move to pkg content.
  2. update the latest used time of each layer. When fetching any layer, we will update the updatedAt time in the bolt database if it exists locally. The updatedAt value in bolt database will used by gc.

Reference: #141.

Signed-off-by: Yadong Ding <ding_yadong@foxmail.com>
@Desiki-high Desiki-high force-pushed the bolt-updateat branch 2 times, most recently from 5f50555 to 9c429b2 Compare June 2, 2023 02:17
@Desiki-high Desiki-high changed the title [WIP]feat: update latest used time of each layer feat: update latest used time of each layer Jun 2, 2023
@Desiki-high Desiki-high force-pushed the bolt-updateat branch 3 times, most recently from b3549f2 to b74163b Compare June 7, 2023 01:38
    When fetch layer, we will update the updatedAt time in bolt database if it exists locally.

Signed-off-by: Yadong Ding <ding_yadong@foxmail.com>
@imeoer imeoer merged commit 46dd39f into goharbor:main Jun 7, 2023
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.

2 participants