mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Disregard healing disks in crawling (#10349)
When crawling never use a disk we know is healing. Most of the change involves keeping track of the original endpoint on xlStorage and this also fixes DiskInfo.Endpoint never being populated. Heal master will print `data-crawl: Disk "http://localhost:9001/data/mindev/data2/xl1" is Healing, skipping` once on a cycle (no more often than every 5m).
This commit is contained in:
@@ -49,7 +49,7 @@ func TestIsValidUmaskVol(t *testing.T) {
|
||||
testCase := testCases[0]
|
||||
|
||||
// Initialize a new xlStorage layer.
|
||||
disk, err := newXLStorage(tmpPath, "")
|
||||
disk, err := newLocalXLStorage(tmpPath)
|
||||
if err != nil {
|
||||
t.Fatalf("Initializing xlStorage failed with %s.", err)
|
||||
}
|
||||
@@ -91,7 +91,7 @@ func TestIsValidUmaskFile(t *testing.T) {
|
||||
testCase := testCases[0]
|
||||
|
||||
// Initialize a new xlStorage layer.
|
||||
disk, err := newXLStorage(tmpPath, "")
|
||||
disk, err := newLocalXLStorage(tmpPath)
|
||||
if err != nil {
|
||||
t.Fatalf("Initializing xlStorage failed with %s.", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user