diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2021-11-22 21:29:33 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2021-11-25 16:13:30 +0300 |
commit | 83e0b3f00a9cdf5cbba52aeb8b33535460557f7a (patch) | |
tree | 097b1ba0da4a32b9abf157514dde93d35d9baeaf /proto/praefect.proto | |
parent | cf51ae3cc562cc11808049f0c69f7451ed220988 (diff) |
Generalize GetPartiallyAvailableRepositories for getting metadata
The only way to get a repository's metadata from Praefect is currently
the dataloss subcommand. However, the dataloss subcommand only works
if the repository is not fully replicated. This is not good as the admins
may be interested in the repository's metadata even if it is fully
replicated. This has become increasingly important with repository-specific
primaries and in the near future with Praefect generated relative paths.
To make it possible to get a repository's complete metadata always, this
commit generalizes the GetPartiallyAvailableRepositories and adds two
more methods for getting the metadata either by a repository's ID or by
it's (virtual_storage, relative_path). The new methods will be used in an
RPC that serves a new cli tool for getting the repository's metadata. The
query and the tests are shared between all of the methods to ensure they
stay in sync.
Diffstat (limited to 'proto/praefect.proto')
0 files changed, 0 insertions, 0 deletions