mirror of
https://github.com/pgsty/minio.git
synced 2026-08-11 00:33:28 +03:00
Use new algorithm to get fixed random order of disks (#2147)
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ func newXLMetaV1(dataBlocks, parityBlocks int) (xlMeta xlMetaV1) {
|
||||
DataBlocks: dataBlocks,
|
||||
ParityBlocks: parityBlocks,
|
||||
BlockSize: blockSizeV1,
|
||||
Distribution: randInts(dataBlocks + parityBlocks),
|
||||
Distribution: hashOrder(time.Now().UTC().String(), dataBlocks+parityBlocks),
|
||||
}
|
||||
return xlMeta
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user