]> source.dussan.org Git - gitea.git/commit
Add new [lfs_client].BATCH_SIZE and [server].LFS_MAX_BATCH_SIZE config settings....
authorRoyce Remer <royceremer@gmail.com>
Wed, 30 Oct 2024 05:41:55 +0000 (22:41 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2024 05:41:55 +0000 (05:41 +0000)
commitc60e4dc1095ef90a790582cacfad27c972637bb2
tree53eda5345deccaabc846412488d26cff0f07469d
parent1cd3f698591edf4fba7880a150b05855cdf40d47
Add new [lfs_client].BATCH_SIZE and [server].LFS_MAX_BATCH_SIZE config settings. (#32307)

This contains two backwards-compatible changes:
* in the lfs http_client, the number of lfs oids requested per batch is
loaded from lfs_client#BATCH_SIZE and defaulted to the previous value of
20
* in the lfs server/service, the max number of lfs oids allowed in a
batch api request is loaded from server#LFS_MAX_BATCH_SIZE and defaults
to 'nil' which equates to the previous behavior of 'infinite'

This fixes #32306

---------

Signed-off-by: Royce Remer <royceremer@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
custom/conf/app.example.ini
modules/lfs/http_client.go
modules/setting/lfs.go
modules/setting/lfs_test.go
services/lfs/server.go