From ed43d5e02bbb7e5c30edc51d8066d7551579987a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 24 May 2016 02:23:59 -0700 Subject: [PATCH] No need to delete file inside erasure code (#1732) --- erasure-createfile.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/erasure-createfile.go b/erasure-createfile.go index e5f049f48..f19e7502a 100644 --- a/erasure-createfile.go +++ b/erasure-createfile.go @@ -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