diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2020-11-23 19:51:58 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2020-11-23 19:51:58 +0300 |
commit | 1504b30e1befd60c87984393d6638667f1881cac (patch) | |
tree | f99a34ca2920bb98fb5df96f5b2bc55332a072a1 | |
parent | 87daf9d2e84deab0987d846b24fa67f24e302baf (diff) |
Use more radix path scheme for keyjv-pack-objects-2
-rw-r--r-- | internal/gitaly/service/hook/pack_objects.go | 2 |
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() { |