mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
feat: implement support batch replication (#15554)
This commit is contained in:
@@ -45,8 +45,8 @@ func oldLinux() bool {
|
||||
|
||||
func setMaxResources() (err error) {
|
||||
// Set the Go runtime max threads threshold to 90% of kernel setting.
|
||||
sysMaxThreads, mErr := sys.GetMaxThreads()
|
||||
if mErr == nil {
|
||||
sysMaxThreads, err := sys.GetMaxThreads()
|
||||
if err == nil {
|
||||
minioMaxThreads := (sysMaxThreads * 90) / 100
|
||||
// Only set max threads if it is greater than the default one
|
||||
if minioMaxThreads > 10000 {
|
||||
|
||||
Reference in New Issue
Block a user