mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
fix: connect disks pre-emptively during startup (#10669)
connect disks pre-emptively upon startup, to ensure we have enough disks are connected at startup rather than wait for them. we need to do this to avoid long wait times for server to be online when we have servers come up in rolling upgrade fashion
This commit is contained in:
@@ -121,9 +121,6 @@ type storageRESTClient struct {
|
||||
// permanently. The only way to restore the storage connection is at the xl-sets layer by xlsets.monitorAndConnectEndpoints()
|
||||
// after verifying format.json
|
||||
func (client *storageRESTClient) call(ctx context.Context, method string, values url.Values, body io.Reader, length int64) (io.ReadCloser, error) {
|
||||
if !client.IsOnline() {
|
||||
return nil, errDiskNotFound
|
||||
}
|
||||
if values == nil {
|
||||
values = make(url.Values)
|
||||
}
|
||||
@@ -134,7 +131,6 @@ func (client *storageRESTClient) call(ctx context.Context, method string, values
|
||||
}
|
||||
|
||||
err = toStorageErr(err)
|
||||
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user