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:
authorJacob Vosmaer <jacob@gitlab.com>2018-01-30 15:22:18 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-01-30 15:22:18 +0300
commitba72f80c02dd422641e48c6439df201c63fdf9d6 (patch)
treee21a93652373e9140e1bdb48b6be09eeedebfd38
parent6a9d5b800e9cc24103aadfdcfc01cd67f289be0b (diff)
Disable 'rugged walk' FindCommits implementationfind-commits-no-rugged
-rw-r--r--internal/service/commit/find_commits.go3
-rw-r--r--internal/service/commit/find_commits_test.go16
2 files changed, 3 insertions, 16 deletions
diff --git a/internal/service/commit/find_commits.go b/internal/service/commit/find_commits.go
index 3060aaf52..b9ffbec8d 100644
--- a/internal/service/commit/find_commits.go
+++ b/internal/service/commit/find_commits.go
@@ -29,6 +29,9 @@ func (s *server) FindCommits(req *pb.FindCommitsRequest, stream pb.CommitService
}
}
+ // We are removing the 'rugged walk' implementation
+ req.DisableWalk = true
+
client, err := s.CommitServiceClient(ctx)
if err != nil {
return err
diff --git a/internal/service/commit/find_commits_test.go b/internal/service/commit/find_commits_test.go
index 1acccf44e..47aaf11ec 100644
--- a/internal/service/commit/find_commits_test.go
+++ b/internal/service/commit/find_commits_test.go
@@ -143,22 +143,6 @@ func TestSuccessfulFindCommitsRequest(t *testing.T) {
Repository: testRepo,
Revision: []byte("0031876facac3f2b2702a0e53a26e89939a42209"),
},
- ids: []string{
- "0031876facac3f2b2702a0e53a26e89939a42209",
- "bf6e164cac2dc32b1f391ca4290badcbe4ffc5fb",
- "48ca272b947f49eee601639d743784a176574a09",
- "9d526f87b82e2b2fd231ca44c95508e5e85624ca",
- "335bc94d5b7369b10251e612158da2e4a4aaa2a5",
- "1039376155a0d507eba0ea95c29f8f5b983ea34b",
- "54188278422b1fa877c2e71c4e37fc6640a58ad1",
- "8b9270332688d58e25206601900ee5618fab2390",
- "f9220df47bce1530e90c189064d301bfc8ceb5ab",
- "40d408f89c1fd26b7d02e891568f880afe06a9f8",
- "df914c609a1e16d7d68e4a61777ff5d6f6b6fde3",
- "6762605237fc246ae146ac64ecb467f71d609120",
- "79b06233d3dc769921576771a4e8bee4b439595d",
- "1a0b36b3cdad1d2ee32457c102a8c0b7056fa863",
- },
},
{
desc: "revision, default commit limit, bypassing rugged walk",