mirror of
https://github.com/minio/minio.git
synced 2025-11-25 20:16:10 -05:00
xl: Fix ReadFile to keep the order always for reading the data back. (#1339)
Also fixes a stackoverflow bug in namespace locking.
This commit is contained in:
committed by
Harshavardhana
parent
c7bf471c9e
commit
141a44bfbf
@@ -55,6 +55,9 @@ func (xl XL) writeErasure(volume, path string, reader *io.PipeReader) {
|
||||
var sha512Writers = make([]hash.Hash, len(xl.storageDisks))
|
||||
var metadataWriters = make([]io.WriteCloser, len(xl.storageDisks))
|
||||
|
||||
// Save additional erasureMetadata.
|
||||
modTime := time.Now().UTC()
|
||||
|
||||
// Initialize storage disks, get all the writers and corresponding
|
||||
// metadata writers.
|
||||
for index, disk := range xl.storageDisks {
|
||||
@@ -131,9 +134,6 @@ func (xl XL) writeErasure(volume, path string, reader *io.PipeReader) {
|
||||
}
|
||||
}
|
||||
|
||||
// Save additional erasureMetadata.
|
||||
modTime := time.Now().UTC()
|
||||
|
||||
// Initialize metadata map, save all erasure related metadata.
|
||||
metadata := make(map[string]string)
|
||||
metadata["version"] = minioVersion
|
||||
|
||||
Reference in New Issue
Block a user