forgejo/modules/lfs
Royce Remer fe5adbbbdc
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>
(cherry picked from commit c60e4dc1095ef90a790582cacfad27c972637bb2)

Conflicts:
	- services/lfs/server.go
	  Conflict due to our Quota implementation. Resolved by manually
	  adding the change after the quota check.
2024-11-05 09:33:15 +01:00
..
client.go
client_test.go
content_store.go [GITEA] Drop sha256-simd in favor of stdlib 2024-02-05 16:09:40 +01:00
endpoint.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
endpoint_test.go
filesystem_client.go fix: close file in the Upload func (#30262) 2024-04-07 15:40:31 +02:00
http_client.go Add new [lfs_client].BATCH_SIZE and [server].LFS_MAX_BATCH_SIZE config settings. (#32307) 2024-11-05 09:33:15 +01:00
http_client_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
LICENSE
pointer.go [GITEA] Drop sha256-simd in favor of stdlib 2024-02-05 16:09:40 +01:00
pointer_scanner.go [CHORE] Drop go-git support 2024-08-12 19:11:09 +02:00
pointer_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
shared.go Distinguish LFS object errors to ignore missing objects during migration (#31702) 2024-08-04 18:24:10 +02:00
transferadapter.go Fix #31185 try fix lfs download from bitbucket failed (#31201) 2024-06-16 13:42:59 +02:00
transferadapter_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00