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

master
Harshavardhana 9 years ago committed by Harshavardhana
parent 293d246f95
commit ed43d5e02b
  1. 6
      erasure-createfile.go

@ -30,12 +30,6 @@ func (e erasure) cleanupCreateFileOps(volume, path string, writers []io.WriteClo
errorIf(err, "Failed to close writer.") 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 // WriteErasure reads predefined blocks, encodes them and writes to

Loading…
Cancel
Save