accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject accumulo git commit: ACCUMULO-3423 fix embarassing findbugs problem
Date Thu, 21 May 2015 18:02:04 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 47d1a4db4 -> 2e10749a7


ACCUMULO-3423 fix embarassing findbugs problem


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/2e10749a
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/2e10749a
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/2e10749a

Branch: refs/heads/master
Commit: 2e10749a790ab296590edfbd3204e8610f6bc223
Parents: 47d1a4d
Author: Eric Newton <eric.newton@gmail.com>
Authored: Thu May 21 14:01:44 2015 -0400
Committer: Eric Newton <eric.newton@gmail.com>
Committed: Thu May 21 14:01:44 2015 -0400

----------------------------------------------------------------------
 .../java/org/apache/accumulo/server/log/WalStateManager.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/2e10749a/server/base/src/main/java/org/apache/accumulo/server/log/WalStateManager.java
----------------------------------------------------------------------
diff --git a/server/base/src/main/java/org/apache/accumulo/server/log/WalStateManager.java
b/server/base/src/main/java/org/apache/accumulo/server/log/WalStateManager.java
index 32f3cbe..1540938 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/log/WalStateManager.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/log/WalStateManager.java
@@ -153,9 +153,10 @@ public class WalStateManager {
     try {
       String path = root();
       for (String child : zoo.getChildren(path)) {
-        List<UUID> logs = result.get(child);
+        TServerInstance inst = new TServerInstance(child);
+        List<UUID> logs = result.get(inst);
         if (logs == null) {
-          result.put(new TServerInstance(child), logs = new ArrayList<>());
+          result.put(inst, logs = new ArrayList<>());
         }
         for (String idString : zoo.getChildren(path + "/" + child)) {
           logs.add(UUID.fromString(idString));


Mime
View raw message