~tritone-team/tritone/eucalyptus

« back to all changes in this revision

Viewing changes to clc/modules/storage-common/src/main/java/edu/ucsb/eucalyptus/storage/fs/FileSystemStorageManager.java

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-12-01 21:09:28 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: james.westby@ubuntu.com-20091201210928-o2dvg0ubljhb0ft6
Tags: upstream-1.6.1~bzr1083
ImportĀ upstreamĀ versionĀ 1.6.1~bzr1083

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
                File oldObjectFile = new File (rootDirectory + FILE_SEPARATOR + sourceBucket + FILE_SEPARATOR + sourceObject);
240
240
                File newObjectFile = new File (rootDirectory + FILE_SEPARATOR + destinationBucket + FILE_SEPARATOR + destinationObject);
241
241
 
242
 
                FileChannel fileIn = new FileInputStream(oldObjectFile).getChannel();
243
 
                FileChannel fileOut = new FileOutputStream(newObjectFile).getChannel();
 
242
                FileInputStream fileInputStream = new FileInputStream(oldObjectFile);
 
243
                FileChannel fileIn = fileInputStream.getChannel();
 
244
                FileOutputStream fileOutputStream = new FileOutputStream(newObjectFile);
 
245
                FileChannel fileOut = fileOutputStream.getChannel();
244
246
                fileIn.transferTo(0, fileIn.size(), fileOut);
245
247
                fileIn.close();
 
248
                fileInputStream.close();
246
249
                fileOut.close();
 
250
                fileOutputStream.close();
247
251
        }
248
252
 
249
253
        public String getObjectPath(String bucket, String object) {