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

This commit is contained in:
Harshavardhana authored and GitHub committed 2020-10-29 09:25:43 -07:00
1 parent e0655e24f2
commit 4bf90ca67f
4 files changed
+13 -13

No files matched your search

+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
}
}