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/15 07:38:51 UTC

[22/30] ignite git commit: Fixed incorrect assertion.

Fixed incorrect assertion.


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

Branch: refs/heads/ignite-1926
Commit: d1b80e0724ee7be6f24062b3942cb431ffae95bc
Parents: 09982a6
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Mon Aug 15 10:03:27 2016 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Mon Aug 15 10:03:27 2016 +0300

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/d1b80e07/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 5859f42..2e33000 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
@@ -515,12 +515,9 @@ public class LocalIgfsSecondaryFileSystem implements IgfsSecondaryFileSystem, Li
         if (workDir != null) {
             if (!path.startsWith(workDir))
                 throw new IgfsException("Path is not located in the work directory [workDir=" + workDir +
-                    "path=" + path + ']');
+                    ", path=" + path + ']');
 
             path = path.substring(workDir.length(), path.length());
-
-            assert path.startsWith("/") : "Path is not located in the work directory [workDir=" + workDir +
-                "path=" + f + ']';
         }
 
         return new IgfsPath(path);