fix: handle a crash when AskDisks is set to -1 (#10777)

This commit is contained in:
Harshavardhana
2020-10-29 09:25:43 -07:00
committed by GitHub
parent e0655e24f2
commit 4bf90ca67f
4 changed files with 13 additions and 13 deletions
+3
View File
@@ -124,6 +124,9 @@ func (z *erasureServerSets) listPath(ctx context.Context, o listPathOptions) (en
case "disk":
// Ask single disk.
o.AskDisks = 1
default:
// By default asks at max 3 disks.
o.AskDisks = 3
}
}