zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject [zookeeper] branch master updated: ZOOKEEPER-3209: Fix compilation error
Date Wed, 16 Jan 2019 22:23:08 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new ed4fad3  ZOOKEEPER-3209: Fix compilation error
ed4fad3 is described below

commit ed4fad3c1af9b15f2c54ccd91f7c09a913c23c40
Author: Dinesh Appavoo <dappavoo@twitter.com>
AuthorDate: Wed Jan 16 15:23:04 2019 -0700

    ZOOKEEPER-3209: Fix compilation error
    
    Author: Dinesh Appavoo <dappavoo@twitter.com>
    
    Reviewers: andor@apache.org
    
    Closes #778 from anmolnar/ZOOKEEPER-3209_buildfix
---
 .../java/org/apache/zookeeper/server/FinalRequestProcessor.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/FinalRequestProcessor.java
b/zookeeper-server/src/main/java/org/apache/zookeeper/server/FinalRequestProcessor.java
index 2c8c5b2..38ebd3f 100644
--- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/FinalRequestProcessor.java
+++ b/zookeeper-server/src/main/java/org/apache/zookeeper/server/FinalRequestProcessor.java
@@ -456,9 +456,9 @@ public class FinalRequestProcessor implements RequestProcessor {
                 if (StringUtils.isBlank(prefixPath) || "/".equals(prefixPath.trim())) {
                     ephemerals.addAll(allEphems);
                 } else {
-                    for (String path: allEphems) {
-                        if(path.startsWith(prefixPath)) {
-                            ephemerals.add(path);
+                    for (String p: allEphems) {
+                        if(p.startsWith(prefixPath)) {
+                            ephemerals.add(p);
                         }
                     }
                 }


Mime
View raw message