mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
resize replication worker pool dynamically after config update (#11737)
This commit is contained in:
committed by
GitHub
parent
209fe61dcc
commit
2f29719e6b
@@ -80,6 +80,10 @@ func (t *apiConfig) init(cfg api.Config, setDriveCounts []int) {
|
||||
t.requestsDeadline = cfg.RequestsDeadline
|
||||
t.listQuorum = cfg.GetListQuorum()
|
||||
t.extendListLife = cfg.ExtendListLife
|
||||
if globalReplicationPool != nil &&
|
||||
cfg.ReplicationWorkers != t.replicationWorkers {
|
||||
globalReplicationPool.Resize(cfg.ReplicationWorkers)
|
||||
}
|
||||
t.replicationWorkers = cfg.ReplicationWorkers
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user