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>2021-09-13 17:31:51 +0300
committerJacob Vosmaer <jacob@gitlab.com>2021-09-15 10:15:09 +0300
commit2f6f81300a7f27324c691557b8ea5b15252fb501 (patch)
tree6f2d192d8729fa832ea9faa5084b946480193bbf /Makefile
parentccd8ea3e1436d6464ac5f67e6bebd1ae317f4d50 (diff)
Makefile: apply Git ref advertisement buffering patches
Prior to these patches, Git used unbuffered writes for upload-pack ref advertisements, with one or two write syscalls per ref. In repositories with many refs that adds up to a lot of syscalls. These patches add stdio buffering for the ref advertisement writes. Also see gitlab-com/gl-infra/scalability#1257. Changelog: performance
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b84894484..fdf268d26 100644
--- a/Makefile
+++ b/Makefile
@@ -152,13 +152,18 @@ ifeq ($(origin GIT_PATCHES),undefined)
# 'ps/update-ref-batch-flush' into next, 2021-09-10).
GIT_PATCHES += 0015-update-ref-fix-streaming-of-status-updates.patch
+ # Buffer ref advertisement writes in upload-pack. Merged into next via
+ # c31d871c (Merge branch 'jv/pkt-line-batch' into next, 2021-09-10).
+ GIT_PATCHES += 0016-pkt-line-add-stdio-packet-write-functions.patch
+ GIT_PATCHES += 0017-upload-pack-use-stdio-in-send_ref-callbacks.patch
+
# This extra version has two intentions: first, it allows us to detect
# capabilities of the command at runtime. Second, it helps admins to
# discover which version is currently in use. As such, this version must be
# incremented whenever a new patch is added above. When no patches exist,
# then this should be undefined. Otherwise, it must be set to at least
# `gl1` given that `0` is the "default" GitLab patch level.
- GIT_EXTRA_VERSION := gl3
+ GIT_EXTRA_VERSION := gl4
endif
ifeq ($(origin GIT_BUILD_OPTIONS),undefined)