mirror of
https://github.com/minio/minio.git
synced 2025-05-22 01:53:55 -04:00
make sure to ignore the rootDisk when healing drives (#13209)
fixes #13208
This commit is contained in:
parent
d9eb962969
commit
787a72a993
@ -1292,10 +1292,13 @@ func (s *erasureSets) HealFormat(ctx context.Context, dryRun bool) (res madmin.H
|
|||||||
if s.erasureDisks[m][n] != nil {
|
if s.erasureDisks[m][n] != nil {
|
||||||
s.erasureDisks[m][n].Close()
|
s.erasureDisks[m][n].Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if storageDisks[index] != nil {
|
||||||
storageDisks[index].SetDiskLoc(s.poolIndex, m, n)
|
storageDisks[index].SetDiskLoc(s.poolIndex, m, n)
|
||||||
s.erasureDisks[m][n] = storageDisks[index]
|
s.erasureDisks[m][n] = storageDisks[index]
|
||||||
s.endpointStrings[m*s.setDriveCount+n] = storageDisks[index].String()
|
s.endpointStrings[m*s.setDriveCount+n] = storageDisks[index].String()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace reference format with what was loaded from disks.
|
// Replace reference format with what was loaded from disks.
|
||||||
s.format = refFormat
|
s.format = refFormat
|
||||||
|
Loading…
x
Reference in New Issue
Block a user