diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-03-03 15:32:58 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-03-30 10:02:32 +0300 |
commit | 95446e6a021eb86e9b7aa10cb213fee769b80b12 (patch) | |
tree | e04e7830d5e6bad75f787efa3b23b9bd3e93ee01 | |
parent | 3c9524bfdd4c694db820341792877bc9cf0558dc (diff) |
protoregistry: Introduce new maintenance operation type
Introduce a new maintenance operation type which reflects the gRPC
operation type into the protoregistry.
-rw-r--r-- | internal/praefect/protoregistry/protoregistry.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/praefect/protoregistry/protoregistry.go b/internal/praefect/protoregistry/protoregistry.go index bc82bbf05..d2b900b1e 100644 --- a/internal/praefect/protoregistry/protoregistry.go +++ b/internal/praefect/protoregistry/protoregistry.go @@ -35,6 +35,10 @@ const ( OpAccessor // OpMutator = mutator operation type (modifies a repository) OpMutator + // OpMaintenance is an operation which performs maintenance-tasks on the repository. It + // shouldn't ever result in a user-visible change in behaviour, except that it may repair + // corrupt data. + OpMaintenance ) // Scope represents the intended scope of an RPC method @@ -250,6 +254,8 @@ func parseMethodInfo( opCode = OpAccessor case gitalypb.OperationMsg_MUTATOR: opCode = OpMutator + case gitalypb.OperationMsg_MAINTENANCE: + opCode = OpMaintenance default: opCode = OpUnknown } |