accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [accumulo] 01/03: ACCUMULO-4779 Fix warning; remove unused field
Date Fri, 26 Jan 2018 01:32:33 GMT
This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo.git

commit d8d2afa11037e41504d8f9347c1f6d36002e4a6a
Author: Christopher Tubbs <ctubbsii@apache.org>
AuthorDate: Thu Jan 25 20:20:47 2018 -0500

    ACCUMULO-4779 Fix warning; remove unused field
    
    Remove instanceId field from ZooConfiguration now that it is no longer
    used after the ZooKeeper path is precomputed in its constructor.
---
 .../src/main/java/org/apache/accumulo/server/conf/ZooConfiguration.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/server/base/src/main/java/org/apache/accumulo/server/conf/ZooConfiguration.java
b/server/base/src/main/java/org/apache/accumulo/server/conf/ZooConfiguration.java
index 2817ba0..cb7bc98 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/conf/ZooConfiguration.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/conf/ZooConfiguration.java
@@ -36,14 +36,12 @@ import com.google.common.base.Predicate;
 public class ZooConfiguration extends AccumuloConfiguration {
   private static final Logger log = LoggerFactory.getLogger(ZooConfiguration.class);
 
-  private final String instanceId;
   private final ZooCache propCache;
   private final AccumuloConfiguration parent;
   private final Map<String,String> fixedProps = Collections.synchronizedMap(new HashMap<String,String>());
   private final String propPathPrefix;
 
   protected ZooConfiguration(String instanceId, ZooCache propCache, AccumuloConfiguration
parent) {
-    this.instanceId = instanceId;
     this.propCache = propCache;
     this.parent = parent;
     this.propPathPrefix = ZooUtil.getRoot(instanceId) + Constants.ZCONFIG;

-- 
To stop receiving notification emails like this one, please contact
ctubbsii@apache.org.

Mime
View raw message