ignite-commits mailing list archives

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


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

Branch: refs/heads/ignite-3661
Commit: b3bdca7ad9b394fba0f263990bd762ba04aef80b
Parents: c85b702
Author: tledkov-gridgain <tledkov@gridgain.com>
Authored: Thu Sep 8 15:13:31 2016 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Thu Sep 8 15:13:31 2016 +0300

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/b3bdca7a/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 12d2830..fd32745 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
@@ -754,7 +754,10 @@ public final class IgfsImpl implements IgfsEx {
 
                 IgfsMode mode = resolveMode(path);
 
-                boolean dual = IgfsUtils.isDualMode(mode);;
+                if (mode == PROXY)
+                    return secondaryFs.delete(path, recursive);
+
+                boolean dual = IgfsUtils.isDualMode(mode);
 
                 if (dual)
                     await(path);


Mime
View raw message