geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject [geode] branch develop updated: GEODE-3597: remove getInstance calls (#1033)
Date Thu, 09 Nov 2017 18:51:55 GMT
This is an automated email from the ASF dual-hosted git repository.

dschneider pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8987dc0  GEODE-3597: remove getInstance calls (#1033)
8987dc0 is described below

commit 8987dc00d212eaab6af71d268c1818d6f0e88c74
Author: Darrel Schneider <dschneider@pivotal.io>
AuthorDate: Thu Nov 9 10:51:52 2017 -0800

    GEODE-3597: remove getInstance calls (#1033)
    
    GEODE-3597: remove getInstance calls
    
    DM.getExistingCache is now used instead of getInstance.
---
 .../org/apache/geode/internal/cache/DistributedCacheOperation.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/DistributedCacheOperation.java
b/geode-core/src/main/java/org/apache/geode/internal/cache/DistributedCacheOperation.java
index fb29e11..505c618 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/DistributedCacheOperation.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/DistributedCacheOperation.java
@@ -1063,7 +1063,7 @@ public abstract class DistributedCacheOperation {
 
     protected LocalRegion getLocalRegionForProcessing(DistributionManager dm) {
       Assert.assertTrue(this.regionPath != null, "regionPath was null");
-      InternalCache gfc = (InternalCache) CacheFactory.getInstance(dm.getSystem());
+      InternalCache gfc = dm.getExistingCache();
       return gfc.getRegionByPathForProcessing(this.regionPath);
     }
 
@@ -1078,7 +1078,6 @@ public abstract class DistributedCacheOperation {
 
       EntryLogger.setSource(this.getSender(), "p2p");
       boolean resetOldLevel = true;
-      // do this before CacheFactory.getInstance for bug 33471
       int oldLevel = LocalRegion.setThreadInitLevelRequirement(LocalRegion.BEFORE_INITIAL_IMAGE);
       try {
         if (dm.getDMType() == DistributionManager.ADMIN_ONLY_DM_TYPE) {

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

Mime
View raw message