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:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-02-17 16:52:46 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-02-17 17:40:49 +0300
commitccc9dcc985366a2cc360d5d89ac6f1c7ae7e3704 (patch)
tree71f016be4e6a83d9729ce480f36816405cbe83b7 /proto/go/gitalypb/ref_grpc.pb.go
parent338d551a965edcc85aa3cc44689acf6b8b2cc1a9 (diff)
proto: Deprecate fine-grained repository maintenance RPCs
Historically we had and still have lots of fine-grained RPCs which perform repository maintenance in Gitaly. This meant that control of how repositories are packed does not reside in Gitaly though, and this is starting to become a bigger problem because we cannot easily iterate on how repositories should be maintained. We have thus recently extended the black-box-style maintenance RPC OptimizeRepository with the intent of making it the single source of truth for how repositories are packed. Deprecate the old fine-grained repository maintenance RPCs. They will be removed as soon as all callers have been migrated to OptimizeRepository, which will then allow us to improve the general repository maintenance strategy. Changelog: deprecated
Diffstat (limited to 'proto/go/gitalypb/ref_grpc.pb.go')
-rw-r--r--proto/go/gitalypb/ref_grpc.pb.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/go/gitalypb/ref_grpc.pb.go b/proto/go/gitalypb/ref_grpc.pb.go
index 159dec471..825002030 100644
--- a/proto/go/gitalypb/ref_grpc.pb.go
+++ b/proto/go/gitalypb/ref_grpc.pb.go
@@ -41,6 +41,8 @@ type RefServiceClient interface {
// which has no signature, but its unsigned contents will still be returned.
GetTagSignatures(ctx context.Context, in *GetTagSignaturesRequest, opts ...grpc.CallOption) (RefService_GetTagSignaturesClient, error)
GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error)
+ // Deprecated: Do not use.
+ // PackRefs is deprecated in favor of OptimizeRepository.
PackRefs(ctx context.Context, in *PackRefsRequest, opts ...grpc.CallOption) (*PackRefsResponse, error)
// ListRefs returns a stream of all references in the repository. By default, pseudo-revisions like HEAD
// will not be returned by this RPC. Any symbolic references will be resolved to the object ID it is
@@ -425,6 +427,7 @@ func (x *refServiceGetTagMessagesClient) Recv() (*GetTagMessagesResponse, error)
return m, nil
}
+// Deprecated: Do not use.
func (c *refServiceClient) PackRefs(ctx context.Context, in *PackRefsRequest, opts ...grpc.CallOption) (*PackRefsResponse, error) {
out := new(PackRefsResponse)
err := c.cc.Invoke(ctx, "/gitaly.RefService/PackRefs", in, out, opts...)
@@ -502,6 +505,8 @@ type RefServiceServer interface {
// which has no signature, but its unsigned contents will still be returned.
GetTagSignatures(*GetTagSignaturesRequest, RefService_GetTagSignaturesServer) error
GetTagMessages(*GetTagMessagesRequest, RefService_GetTagMessagesServer) error
+ // Deprecated: Do not use.
+ // PackRefs is deprecated in favor of OptimizeRepository.
PackRefs(context.Context, *PackRefsRequest) (*PackRefsResponse, error)
// ListRefs returns a stream of all references in the repository. By default, pseudo-revisions like HEAD
// will not be returned by this RPC. Any symbolic references will be resolved to the object ID it is