mirror of https://github.com/apache/druid.git
Merge pull request #412 from pgkiran/filepeon-cleanup
Temp filePeon files cleanup
This commit is contained in:
commit
4983210907
|
@ -42,6 +42,7 @@ public class TmpFileIOPeon implements IOPeon
|
|||
File retFile = createdFiles.get(filename);
|
||||
if (retFile == null) {
|
||||
retFile = File.createTempFile("filePeon", filename);
|
||||
retFile.deleteOnExit();
|
||||
createdFiles.put(filename, retFile);
|
||||
}
|
||||
return new BufferedOutputStream(new FileOutputStream(retFile));
|
||||
|
|
Loading…
Reference in New Issue