Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C572E17A31 for ; Tue, 21 Apr 2015 08:20:18 +0000 (UTC) Received: (qmail 17736 invoked by uid 500); 21 Apr 2015 08:20:18 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 17708 invoked by uid 500); 21 Apr 2015 08:20:18 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 17699 invoked by uid 99); 21 Apr 2015 08:20:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2015 08:20:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2015 08:19:54 +0000 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 3F59C2BE79 for ; Tue, 21 Apr 2015 07:04:04 +0000 (UTC) Received: (qmail 84326 invoked by uid 99); 21 Apr 2015 07:04:01 -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; Tue, 21 Apr 2015 07:04:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CD90EE0FBC; Tue, 21 Apr 2015 07:04:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: akuznetsov@apache.org To: commits@ignite.incubator.apache.org Date: Tue, 21 Apr 2015 07:04:20 -0000 Message-Id: <01e982564c7441cfbf4a87469390ee95@git.apache.org> In-Reply-To: <7227973f64ba4a74b33cb131b3e9435a@git.apache.org> References: <7227973f64ba4a74b33cb131b3e9435a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [20/51] incubator-ignite git commit: #ignite-758: return the same instance of GridCacheProxyImpl if flag skip store is not changed. X-Virus-Checked: Checked by ClamAV on apache.org #ignite-758: return the same instance of GridCacheProxyImpl if flag skip store is not changed. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/343124eb Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/343124eb Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/343124eb Branch: refs/heads/ignite-737 Commit: 343124eb86774a0d36865b648bd977cdb70cdfa9 Parents: 645c896 Author: ivasilinets Authored: Fri Apr 17 11:25:49 2015 +0300 Committer: ivasilinets Committed: Fri Apr 17 11:25:49 2015 +0300 ---------------------------------------------------------------------- .../ignite/internal/processors/cache/GridCacheProxyImpl.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/343124eb/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java index a57c953..03bdf43 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProxyImpl.java @@ -212,6 +212,9 @@ public class GridCacheProxyImpl implements IgniteInternalCache, Exte CacheOperationContext prev = gate.enter(prj); try { + if (prj.skipStore() == skipStore) + return this; + return new GridCacheProxyImpl<>(ctx, delegate, prj.setSkipStore(skipStore)); } finally {