Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2731E200B91 for ; Wed, 14 Sep 2016 13:10:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2601F160ADE; Wed, 14 Sep 2016 11:10:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 33FB1160AEE for ; Wed, 14 Sep 2016 13:10:20 +0200 (CEST) Received: (qmail 34833 invoked by uid 500); 14 Sep 2016 11:10:19 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 33853 invoked by uid 99); 14 Sep 2016 11:10:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2016 11:10:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 09916EFE5E; Wed, 14 Sep 2016 11:10:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vozerov@apache.org To: commits@ignite.apache.org Date: Wed, 14 Sep 2016 11:10:48 -0000 Message-Id: <0f93bc1d033a47e7977f0af5b90afd61@git.apache.org> In-Reply-To: <405a5f4a1979449aa9ebf08fe75e1c58@git.apache.org> References: <405a5f4a1979449aa9ebf08fe75e1c58@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [32/50] ignite git commit: IGNITE-3852 IGFS: Support direct PROXY mode invocation in method: info. This closes #1040. archived-at: Wed, 14 Sep 2016 11:10:22 -0000 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 Authored: Wed Sep 7 17:30:48 2016 +0300 Committer: vozerov-gridgain 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)