You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/08/08 15:30:39 UTC

ignite git commit: Fix for work dir.

Repository: ignite
Updated Branches:
  refs/heads/ignite-1926 24229d450 -> 1b67b9ce6


Fix for work dir.


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

Branch: refs/heads/ignite-1926
Commit: 1b67b9ce60d83ad653817485130ed76f41c8347c
Parents: 24229d4
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Mon Aug 8 18:29:55 2016 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Mon Aug 8 18:29:55 2016 +0300

----------------------------------------------------------------------
 .../apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/1b67b9ce/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java
----------------------------------------------------------------------
diff --git a/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java b/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java
index 184a054..1166564 100644
--- a/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java
+++ b/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java
@@ -109,7 +109,10 @@ public class LocalIgfsSecondaryFileSystem implements IgfsSecondaryFileSystem, Li
         if (path.startsWith("/"))
             path = path.substring(1, path.length());
 
-        return GridFilenameUtils.concat(workDir, path);
+        if (workDir == null)
+            return path;
+        else
+            return GridFilenameUtils.concat(workDir, path);
     }
 
     /**