浏览代码

HDFS-11403. Addendum fix for branch-2.

Arpit Agarwal 8 年之前
父节点
当前提交
4c5655ef1a

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/ActiveStandbyElector.java

@@ -1073,7 +1073,7 @@ public class ActiveStandbyElector implements StatCallback, StringCallback {
 
 
   private void setAclsWithRetries(final String path)
   private void setAclsWithRetries(final String path)
       throws KeeperException, InterruptedException {
       throws KeeperException, InterruptedException {
-    Stat stat = new Stat();
+    final Stat stat = new Stat();
     zkDoWithRetries(new ZKAction<Void>() {
     zkDoWithRetries(new ZKAction<Void>() {
       @Override
       @Override
       public Void run() throws KeeperException, InterruptedException {
       public Void run() throws KeeperException, InterruptedException {