Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 96EDD200CA8 for ; Thu, 1 Jun 2017 05:56:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 93D4F160BDB; Thu, 1 Jun 2017 03:56:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DB04B160BCB for ; Thu, 1 Jun 2017 05:56:02 +0200 (CEST) Received: (qmail 55660 invoked by uid 500); 1 Jun 2017 03:56:01 -0000 Mailing-List: contact commits-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list commits@zookeeper.apache.org Received: (qmail 55649 invoked by uid 99); 1 Jun 2017 03:56:01 -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; Thu, 01 Jun 2017 03:56:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6B8C0DFC8B; Thu, 1 Jun 2017 03:56:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hanm@apache.org To: commits@zookeeper.apache.org Message-Id: <14562e4e6496463e9f87effade793ad5@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: zookeeper git commit: ZOOKEEPER-2788: remove unused variable MAX_CONNECTION_ATTEMPTS. Date: Thu, 1 Jun 2017 03:56:01 +0000 (UTC) archived-at: Thu, 01 Jun 2017 03:56:03 -0000 Repository: zookeeper Updated Branches: refs/heads/branch-3.4 159ead6f1 -> 3289ebbaa ZOOKEEPER-2788: remove unused variable MAX_CONNECTION_ATTEMPTS. Author: Abraham Fine Reviewers: Michael Han Closes #268 from afine/ZOOKEEPER-2788_3.4 Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/3289ebba Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/3289ebba Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/3289ebba Branch: refs/heads/branch-3.4 Commit: 3289ebbaa48d85ceb9dc5154f5547f37cf7d300c Parents: 159ead6 Author: Abraham Fine Authored: Wed May 31 20:55:57 2017 -0700 Committer: Michael Han Committed: Wed May 31 20:55:57 2017 -0700 ---------------------------------------------------------------------- .../org/apache/zookeeper/server/quorum/QuorumCnxManager.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zookeeper/blob/3289ebba/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java ---------------------------------------------------------------------- diff --git a/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java b/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java index cc45562..878008b 100644 --- a/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java +++ b/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java @@ -82,12 +82,7 @@ public class QuorumCnxManager { // stale notifications to peers static final int SEND_CAPACITY = 1; - static final int PACKETMAXSIZE = 1024 * 512; - /* - * Maximum number of attempts to connect to a peer - */ - - static final int MAX_CONNECTION_ATTEMPTS = 2; + static final int PACKETMAXSIZE = 1024 * 512; /* * Max buffer size to be read from the network.