No need to delete file inside erasure code (#1732)

This commit is contained in:
Harshavardhana 2016-05-24 02:23:59 -07:00 committed by Harshavardhana
parent 293d246f95
commit ed43d5e02b

View File

@ -30,12 +30,6 @@ func (e erasure) cleanupCreateFileOps(volume, path string, writers []io.WriteClo
errorIf(err, "Failed to close writer.")
}
}
// Remove any temporary written data.
for _, disk := range e.storageDisks {
if err := disk.DeleteFile(volume, path); err != nil {
errorIf(err, "Unable to delete file.")
}
}
}
// WriteErasure reads predefined blocks, encodes them and writes to