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>2020-11-23 19:51:58 +0300
committerJacob Vosmaer <jacob@gitlab.com>2020-11-23 19:51:58 +0300
commit1504b30e1befd60c87984393d6638667f1881cac (patch)
treef99a34ca2920bb98fb5df96f5b2bc55332a072a1
parent87daf9d2e84deab0987d846b24fa67f24e302baf (diff)
Use more radix path scheme for keyjv-pack-objects-2
-rw-r--r--internal/gitaly/service/hook/pack_objects.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/service/hook/pack_objects.go b/internal/gitaly/service/hook/pack_objects.go
index 1dff03431..5387f73d0 100644
--- a/internal/gitaly/service/hook/pack_objects.go
+++ b/internal/gitaly/service/hook/pack_objects.go
@@ -258,7 +258,7 @@ func (e *entry) isStale() bool { return time.Since(e.created) > e.c.maxAge }
func (e *entry) chunkKey(i int) string {
chunk := fmt.Sprintf("%02x", i)
- return fmt.Sprintf("%s/%s/%s/%d", e.key, chunk[len(chunk)-2:], chunk, e.id)
+ return fmt.Sprintf("%s/%s/%s/%s/%s/%d", e.key[:2], e.key[2:4], e.key[4:], chunk[len(chunk)-2:], chunk, e.id)
}
func (e *entry) delete() {