ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [28/50] [abbrv] incubator-ignite git commit: #ignite-758: return the same instance of GridCacheProxyImpl if flag skip store is not changed.
Date Mon, 20 Apr 2015 11:48:39 GMT
#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-sprint-4
Commit: 343124eb86774a0d36865b648bd977cdb70cdfa9
Parents: 645c896
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Fri Apr 17 11:25:49 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
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<K, V> implements IgniteInternalCache<K,
V>, Exte
         CacheOperationContext prev = gate.enter(prj);
 
         try {
+            if (prj.skipStore() == skipStore)
+                return this;
+
             return new GridCacheProxyImpl<>(ctx, delegate, prj.setSkipStore(skipStore));
         }
         finally {


Mime
View raw message