ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject ignite git commit: Fix for work dir.
Date Mon, 08 Aug 2016 15:30:39 GMT
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 <vozerov@gridgain.com>
Authored: Mon Aug 8 18:29:55 2016 +0300
Committer: vozerov-gridgain <vozerov@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);
     }
 
     /**


Mime
View raw message