ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [22/30] ignite git commit: Fixed incorrect assertion.
Date Mon, 15 Aug 2016 07:38:51 GMT
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 <vozerov@gridgain.com>
Authored: Mon Aug 15 10:03:27 2016 +0300
Committer: vozerov-gridgain <vozerov@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);


Mime
View raw message