Return-Path: X-Original-To: apmail-geode-commits-archive@minotaur.apache.org Delivered-To: apmail-geode-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FBA718A05 for ; Fri, 24 Jul 2015 23:15:49 +0000 (UTC) Received: (qmail 14520 invoked by uid 500); 24 Jul 2015 23:15:49 -0000 Delivered-To: apmail-geode-commits-archive@geode.apache.org Received: (qmail 14488 invoked by uid 500); 24 Jul 2015 23:15:49 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 14479 invoked by uid 99); 24 Jul 2015 23:15:49 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2015 23:15:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 99660D764E for ; Fri, 24 Jul 2015 23:15:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-1.227, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xfH5Kju1dkzv for ; Fri, 24 Jul 2015 23:15:34 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 748C45064D for ; Fri, 24 Jul 2015 23:15:25 +0000 (UTC) Received: (qmail 10508 invoked by uid 99); 24 Jul 2015 23:15:25 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2015 23:15:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 00B51E6854; Fri, 24 Jul 2015 23:15:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dschneider@apache.org To: commits@geode.incubator.apache.org Date: Fri, 24 Jul 2015 23:16:12 -0000 Message-Id: <8dde097b346142e3ac5a72777361df3a@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [49/50] incubator-geode git commit: management events are now disabled if the distributed system is a loner 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 Authored: Fri Jul 24 15:24:30 2015 -0700 Committer: Darrel Schneider 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) {