mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
parent
124816f6a6
commit
651487507a
@ -97,14 +97,15 @@ func (d1 BackendDisks) Merge(d2 BackendDisks) BackendDisks {
|
||||
if len(d2) == 0 {
|
||||
d2 = make(BackendDisks)
|
||||
}
|
||||
var merged = make(BackendDisks)
|
||||
for i1, v1 := range d1 {
|
||||
if v2, ok := d2[i1]; ok {
|
||||
d2[i1] = v2 + v1
|
||||
merged[i1] = v2 + v1
|
||||
continue
|
||||
}
|
||||
d2[i1] = v1
|
||||
merged[i1] = v1
|
||||
}
|
||||
return d2
|
||||
return merged
|
||||
}
|
||||
|
||||
// StorageInfo - Connect to a minio server and call Storage Info Management API
|
||||
|
Loading…
Reference in New Issue
Block a user