Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Liu <jliu@gitlab.com>2023-12-14 03:51:00 +0300
committerJames Liu <jliu@gitlab.com>2024-01-17 01:13:13 +0300
commit592cd8528e30f1e4c0810b1889854aa38b208418 (patch)
treefbf1313efac5e813a710b14421a2a41e0bd47e53 /internal/backup/backup.go
parent07c7b8b56b241e98f6a3dc3a1b47070b3a7602a9 (diff)
backup: Only remove "dangling" repositories
Instead of invoking the RemoveAll() RPC prior to the restore, we instead compare the set of existing repositories to the set of repositories contained in the backup being restored. The difference between the two sets -- the set of "dangling" repositories -- are removed individually. This is done to ensure the state of repos in Gitaly matches the worldview held by the Rails DB after a GitLab instance restore. Also fixes the existing tests so that all repositories are created with `gittest.CreateRepository` and are thus visible when we later query `ListRepositories` in the restore logic.
Diffstat (limited to 'internal/backup/backup.go')
0 files changed, 0 insertions, 0 deletions