You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2017/05/03 22:08:41 UTC
geode git commit: Revert session modules changes part 2
Repository: geode
Updated Branches:
refs/heads/feature/GEODE-2632-10 41367f634 -> 88d3dd11f
Revert session modules changes part 2
Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/88d3dd11
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/88d3dd11
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/88d3dd11
Branch: refs/heads/feature/GEODE-2632-10
Commit: 88d3dd11ff5b284b3222b33a6f912f1c03ab7159
Parents: 41367f6
Author: Kirk Lund <kl...@apache.org>
Authored: Wed May 3 15:08:23 2017 -0700
Committer: Kirk Lund <kl...@apache.org>
Committed: Wed May 3 15:08:23 2017 -0700
----------------------------------------------------------------------
.../session/internal/common/PeerToPeerSessionCache.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/geode/blob/88d3dd11/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java
----------------------------------------------------------------------
diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java
index 10c13ae..ff47e78 100644
--- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java
+++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java
@@ -57,7 +57,7 @@ public class PeerToPeerSessionCache extends AbstractSessionCache {
super();
this.cache = cache;
- /*
+ /**
* Set some default properties for this cache if they haven't already been set
*/
this.properties.put(CacheProperty.REGION_ATTRIBUTES_ID, DEFAULT_REGION_ATTRIBUTES_ID);
@@ -76,12 +76,11 @@ public class PeerToPeerSessionCache extends AbstractSessionCache {
// Create or retrieve the region
createOrRetrieveRegion();
- /*
+ /**
* If local cache is enabled, create the local region fronting the session region and set it as
* the operating region; otherwise, use the session region directly as the operating region.
*/
- boolean enableLocalCache =
- Boolean.valueOf((String) properties.get(CacheProperty.ENABLE_LOCAL_CACHE));
+ boolean enableLocalCache = (Boolean) properties.get(CacheProperty.ENABLE_LOCAL_CACHE);
operatingRegion = enableLocalCache ? createOrRetrieveLocalRegion() : this.sessionRegion;
// Create or retrieve the statistics