You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bs...@apache.org on 2018/11/10 00:09:56 UTC

[geode] 01/01: GEODE-5072 Java clients should not access or modify internal regions

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

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

commit 98927d1f49221b3cd617337299c799de5470e072
Author: Bruce Schuchardt <bs...@pivotal.io>
AuthorDate: Fri Nov 9 16:07:53 2018 -0800

    GEODE-5072 Java clients should not access or modify internal regions
    
    Modified the kind of cache available to client/server command processing
    in order to restrict access to internal regions.
---
 .../java/org/apache/geode/internal/cache/tier/CachedRegionHelper.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/tier/CachedRegionHelper.java b/geode-core/src/main/java/org/apache/geode/internal/cache/tier/CachedRegionHelper.java
index 0bf102d..6e96512 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/tier/CachedRegionHelper.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/tier/CachedRegionHelper.java
@@ -31,7 +31,7 @@ public class CachedRegionHelper {
   private volatile boolean shutdown = false;
 
   public CachedRegionHelper(InternalCache cache) {
-    this.cache = cache;
+    this.cache = cache.getCacheForProcessingClientRequests();
   }
 
   public void checkCancelInProgress(Throwable e) throws CancelException {