diff options
author | Vasilii Iakliushin <viakliushin@gitlab.com> | 2021-10-13 14:21:18 +0300 |
---|---|---|
committer | Vasilii Iakliushin <viakliushin@gitlab.com> | 2021-10-20 15:41:42 +0300 |
commit | 27b02714920d8ba8b451eb26d19395e7f692589b (patch) | |
tree | 05a550bfd4618c59a02e6553178d693be00843b4 /internal/gitaly/service/ref/remote_branches.go | |
parent | aec413230e6bce8782ae72d95d2d3cb312ebe923 (diff) |
Add pagination support for FindAllTags RPC
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/340591
**Problem**
FindAllTags request does not support pagination parameters. Lack of
pagination causes performance issues for repositories with many tags.
**Solution**
Add pagination parameter support similar to what we use for
FindLocalBranches.
Changelog: added
Diffstat (limited to 'internal/gitaly/service/ref/remote_branches.go')
-rw-r--r-- | internal/gitaly/service/ref/remote_branches.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/service/ref/remote_branches.go b/internal/gitaly/service/ref/remote_branches.go index 6a1c1b672..57ed60999 100644 --- a/internal/gitaly/service/ref/remote_branches.go +++ b/internal/gitaly/service/ref/remote_branches.go @@ -36,7 +36,7 @@ func (s *server) findAllRemoteBranches(req *gitalypb.FindAllRemoteBranchesReques return err } - opts := paginationParamsToOpts(ctx, nil) + opts := buildFindRefsOpts(ctx, nil) opts.cmdArgs = args writer := newFindAllRemoteBranchesWriter(stream, objectReader) |