mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
ReInitDisk RPC handler should use retryStorage (#5310)
This commit is contained in:
parent
7d75d61621
commit
bbe521ffec
@ -104,8 +104,12 @@ func (s *adminCmd) ReInitDisks(args *AuthRPCArgs, reply *AuthRPCReply) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wrap into retrying disks
|
||||||
|
retryingDisks := initRetryableStorageDisks(bootstrapDisks,
|
||||||
|
time.Millisecond, time.Millisecond*5, globalStorageHealthCheckInterval, globalStorageRetryThreshold)
|
||||||
|
|
||||||
// Initialize new object layer with newly formatted disks.
|
// Initialize new object layer with newly formatted disks.
|
||||||
newObjectAPI, err := newXLObjects(bootstrapDisks)
|
newObjectAPI, err := newXLObjects(retryingDisks)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user