ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [32/50] ignite git commit: IGNITE-3852 IGFS: Support direct PROXY mode invocation in method: info. This closes #1040.
Date Wed, 14 Sep 2016 11:10:48 GMT
IGNITE-3852 IGFS: Support direct PROXY mode invocation in method: info. This closes #1040.


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

Branch: refs/heads/ignite-3661
Commit: 216477e5a9badc09133a7fe1f545e048a23a8218
Parents: 88d027d
Author: tledkov-gridgain <tledkov@gridgain.com>
Authored: Wed Sep 7 17:30:48 2016 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Wed Sep 7 17:30:48 2016 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/processors/igfs/IgfsImpl.java    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/216477e5/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java
index 642352e..439e9ba 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java
@@ -1526,7 +1526,14 @@ public final class IgfsImpl implements IgfsEx {
                 break;
 
             default:
-                assert false : "Unknown mode: " + mode;
+                assert mode == PROXY : "Unknown mode: " + mode;
+
+                IgfsFile status = secondaryFs.info(path);
+
+                if (status != null)
+                    return new IgfsFileImpl(status, data.groupBlockSize());
+                else
+                    return null;
         }
 
         if (info == null)


Mime
View raw message