You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2016/02/05 21:36:17 UTC

jclouds git commit: Null out tmpFile to avoid remove after rename

Repository: jclouds
Updated Branches:
  refs/heads/master 6cefc99cf -> 637123556


Null out tmpFile to avoid remove after rename


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/63712355
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/63712355
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/63712355

Branch: refs/heads/master
Commit: 6371235568ea8d8380d5ce6442a321972197983e
Parents: 6cefc99
Author: Andrew Gaul <ga...@apache.org>
Authored: Fri Feb 5 12:35:27 2016 -0800
Committer: Andrew Gaul <ga...@apache.org>
Committed: Fri Feb 5 12:35:27 2016 -0800

----------------------------------------------------------------------
 .../filesystem/strategy/internal/FilesystemStorageStrategyImpl.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/63712355/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
----------------------------------------------------------------------
diff --git a/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java b/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
index f67c5aa..127f5f2 100644
--- a/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
+++ b/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
@@ -496,6 +496,7 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
          if (!tmpFile.renameTo(outputFile)) {
             throw new IOException("Could not rename file " + tmpFile + " to " + outputFile);
          }
+         tmpFile = null;
 
          return base16().lowerCase().encode(actualHashCode.asBytes());
       } finally {