You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ag...@apache.org on 2018/01/12 23:46:05 UTC

[geode] branch feature/GEODE-3583-storage updated: GEODE-4202: Remove GemFireCacheImpl.getInstance from PartitionedRegion

This is an automated email from the ASF dual-hosted git repository.

agingade pushed a commit to branch feature/GEODE-3583-storage
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/GEODE-3583-storage by this push:
     new f5449ae  GEODE-4202: Remove GemFireCacheImpl.getInstance from PartitionedRegion
f5449ae is described below

commit f5449aec9412fbdbe67e2218294760338c47bcad
Author: Anil <ag...@pivotal.io>
AuthorDate: Fri Jan 12 15:44:00 2018 -0800

    GEODE-4202: Remove GemFireCacheImpl.getInstance from PartitionedRegion
---
 .../java/org/apache/geode/internal/cache/PartitionedRegion.java   | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
index 701f140..347a114 100755
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
@@ -595,14 +595,6 @@ public class PartitionedRegion extends LocalRegion
     }
 
     public Object getRegion(Object key) throws PRLocallyDestroyedException {
-      if (cleared) {
-        Cache cache = GemFireCacheImpl.getInstance();
-        if (cache == null) {
-          throw new CacheClosedException();
-        } else {
-          cache.getCancelCriterion().checkCancelInProgress(null);
-        }
-      }
       Assert.assertTrue(key instanceof Integer);
 
       Object o = super.get(key);

-- 
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].