geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject [49/50] incubator-geode git commit: management events are now disabled if the distributed system is a loner
Date Fri, 24 Jul 2015 23:16:12 GMT
management events are now disabled if the distributed system is a loner


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/98c31fa3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/98c31fa3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/98c31fa3

Branch: refs/heads/feature/GEODE-86
Commit: 98c31fa34c819007adfb2b35daf14abc23d05dd5
Parents: 3d83a1c
Author: Darrel Schneider <dschneider@pivotal.io>
Authored: Fri Jul 24 15:24:30 2015 -0700
Committer: Darrel Schneider <dschneider@pivotal.io>
Committed: Fri Jul 24 15:24:30 2015 -0700

----------------------------------------------------------------------
 .../gemfire/distributed/internal/InternalDistributedSystem.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/98c31fa3/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/InternalDistributedSystem.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/InternalDistributedSystem.java
b/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/InternalDistributedSystem.java
index e30b20b..f3704b1 100644
--- a/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/InternalDistributedSystem.java
+++ b/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/InternalDistributedSystem.java
@@ -484,7 +484,8 @@ public final class InternalDistributedSystem
    *          resource on which event is generated
    */
   public void handleResourceEvent(ResourceEvent event, Object resource) {
-    if (disableManagement) {
+    if (disableManagement || isLoner()) {
+      // no need for management events in a loner
       return;
     }
     if (resourceListeners.size() == 0) {


Mime
View raw message